Package nexj.core.util

Examples of nexj.core.util.IdentityHashHolder


   {
      verifyNotReadOnly();

      if (m_dependency != null)
      {
         Holder set = new IdentityHashHolder();

         set.add(this);
         verifyDependency(m_metaclass, m_dependency, set);

         List stack = new ArrayList();

         stack.add(this);
View Full Code Here


   {
      Message baseMessage = m_message.getBaseMessage();

      if (baseMessage != null && baseMessage.getDerivation() != Message.DERIVATION_FINAL)
      {
         Set visitedSet = new IdentityHashHolder();

         visitedSet.add(this);
         ((RootXMLMessagePartMapping)baseMessage.getRoot().getMapping()).addNamespaces(m_namespaceMap,
               visitedSet);
      }
   }
View Full Code Here

       * Connect to the dispatching node.
       */
      protected void connectDispatcher(Object conf)
      {
         m_sDispatcherNodeName = J2EEUtil.ISOLATED_NODE_NAME;
         m_socketSet = new IdentityHashHolder();
      }
View Full Code Here

      {
         m_bDeferred = true;

         if (m_classSet != null)
         {
            Set identitySet = new IdentityHashHolder();
  
            for (Iterator itr = m_classSet.iterator(); itr.hasNext();)
            {
               ClassObject clazz = (ClassObject)itr.next();
  
View Full Code Here

    * inheritance resolution shall be performed.
    */
   public static void resolveInheritance(Iterator txfIterator)
   {
      MetadataCompoundValidationException comp = null;
      Holder circularTxfSet = new IdentityHashHolder();
      Holder resolvedTxfSet = new IdentityHashHolder();

      while (txfIterator.hasNext())
      {
         Transformation transformation = (Transformation)txfIterator.next();

         circularTxfSet.add(transformation);

         if (transformation.m_base == null)
         {
            try
            {
               transformation.resolveInheritance(resolvedTxfSet);
            }
            catch (UncheckedException ex)
            {
               if (comp == null)
               {
                  comp = new MetadataCompoundValidationException();
               }

               transformation.addException(comp, ex);
            }
         }
      }

      // Inheritance cycles have no transformation where m_base == null, so they are never resolved.
      if (circularTxfSet.size() != resolvedTxfSet.size())
      {
         circularTxfSet.removeAll(resolvedTxfSet);

         if (comp == null)
         {
View Full Code Here

    * order they are resolved. Can be null.
    */
   public static void resolveInheritance(Iterator msgIterator, List sortedMessageList)
   {
      MetadataCompoundValidationException comp = null;
      Holder circularMessageSet = new IdentityHashHolder();
      Holder resolvedMessageSet = new IdentityHashHolder();

      while (msgIterator.hasNext())
      {
         Message message = (Message)msgIterator.next();

         circularMessageSet.add(message);

         // Process inheritance starting on the root messages.
         if (message.m_base == null)
         {
            try
            {
               message.resolveInheritance(resolvedMessageSet, sortedMessageList);
            }
            catch (UncheckedException ex)
            {
               if (comp == null)
               {
                  comp = new MetadataCompoundValidationException();
               }

               message.addException(comp, ex);
            }
         }
      }

      // Inheritance cycles have no message where m_base == null, so they are never resolved.
      if (circularMessageSet.size() != resolvedMessageSet.size())
      {
         circularMessageSet.removeAll(resolvedMessageSet);

         if (comp == null)
         {
View Full Code Here

      if (m_bReferencesResolved)
      {
         return;
      }

      resolveReferences(new IdentityHashHolder());
      m_bReferencesResolved = true;
   }
View Full Code Here

TOP

Related Classes of nexj.core.util.IdentityHashHolder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.