Package nexj.core.util

Examples of nexj.core.util.HashTab


      {
         Pair pathToAdd = associationPath;

         if (m_assocPathByDependentMsgPartMap == null)
         {
            m_assocPathByDependentMsgPartMap = new HashTab();
         }
         else
         {
            Pair oldPath = (Pair)m_assocPathByDependentMsgPartMap.get(part);

            if (oldPath != null)
            {
               pathToAdd = findCommonAssocSuffix(associationPath, oldPath);
            }
            else if (m_assocPathByAssocCodeMap != null)
            {
               ObjectMessagePartMapping partMapping = (ObjectMessagePartMapping)part.getMapping();

               if (m_assocPathByAssocCodeMap.get(partMapping.getAssociationCode()) != null)
               {
                  pathToAdd = null;
               }
            }

            if (pathToAdd == null)
            {
               ObjectMessagePartMapping partMapping = (ObjectMessagePartMapping)part.getMapping();

               throw new MetadataValidationException("err.meta.integration.object.mapping.associationCodeDup",
                  new Object[]{partMapping.getAssociationCode(), part.getFullPath()});
            }
         }

         m_assocPathByDependentMsgPartMap.put(part, pathToAdd);

         if (bRoot)
         {
            if (m_assocPathByAssocCodeMap == null)
            {
               m_assocPathByAssocCodeMap = new HashTab();
            }

            m_assocPathByAssocCodeMap.put(
               ((ObjectMessagePartMapping)part.getMapping()).getAssociationCode(), pathToAdd);
         }
View Full Code Here


   }

   public static Message[] createMessageParts(URL xsdURL, final Metadata metadata, final MessageNameResolver msgNameResolver, final boolean createMessagesForSingleReferences) throws IOException
   {
      final List messageList = new ArrayList();
      final Lookup namespaceRegistry = new HashTab();
      final MessageRegistry msgRegistry = new MessageRegistry();
     
      forEachXSModel(xsdURL, new IXSModelHandler()
      {
         public boolean handle(XSModel xsModel, Document wsdlDoc) throws IOException
View Full Code Here

   }

   public static Message createMessagePart(URL xsdURL, final Metadata metadata, final String rootElement, final MessageNameResolver msgNameResolver) throws IOException
   {
      final Message retVal[] = new Message[1];
      final Lookup namespaceRegistry = new HashTab();
     
      forEachXSModel(xsdURL, new IXSModelHandler()
      {
         public boolean handle(XSModel xsModel, Document wsdlDoc) throws IOException
         {
View Full Code Here

      {
         return;
      }

      //Ensure fragments do not duplicate dataDirectory or temporaryDirectory
      Lookup dataDirLookup = new HashTab(getFragmentCount());
      Lookup tempDirLookup = new HashTab(getFragmentCount());
     
      for (Iterator itr = getFragmentIterator(); itr.hasNext(); )
      {
         FileDataSourceFragment fragment = (FileDataSourceFragment)itr.next();
         FileDataSourceFragment oldFragment;
        
         oldFragment = (FileDataSourceFragment)dataDirLookup.put(fragment.getDataDirectory(), fragment);
        
         if (oldFragment != null)
         {
            throw new MetadataException("err.meta.persistence.file.duplicateDataDirectory",
               new Object[]{fragment.getName(), oldFragment.getName(), getName()});
         }
        
         oldFragment = (FileDataSourceFragment)tempDirLookup.put(fragment.getTemporaryDirectory(), fragment);
        
         if (oldFragment != null)
         {
            throw new MetadataException("err.meta.persistence.file.duplicateTemporaryDirectory",
               new Object[]{fragment.getName(), oldFragment.getName(), getName()});
View Full Code Here

      {
         m_compiler = compiler;
        
         if (compiler.m_urlHolder instanceof String)
         {
            m_urlMap = new HashTab(1);
            m_urlMap.put(compiler.m_urlHolder, Primitive.ZERO_INTEGER);
            m_nURLIndex = 0;
         }
      }
View Full Code Here

                  }
                  else if ("portType".equals(localName))
                  {
                     if (m_portTypeMap == null)
                     {
                        m_portTypeMap = new HashTab();
                     }
                    
                     m_portTypeMap.put(element.getAttribute("name"), element);
                  }
                  else if ("message".equals(localName))
                  {
                     if (m_messageMap == null)
                     {
                        m_messageMap = new HashTab();
                     }
                    
                     m_messageMap.put(element.getAttribute("name"), element);
                  }
                 
View Full Code Here

            if (sURL != null)
            {
               if (m_urlMap == null)
               {
                  m_urlMap = new HashTab();
               }

               Object index = m_urlMap.get(sURL);

               if (index == null)
View Full Code Here

    */
   public void addResource(String sName, XMLResource resource)
   {
      if (m_resourceMap == null)
      {
         m_resourceMap = new HashTab();
      }

      m_resourceMap.put(sName, resource);
      m_extensionMap = null;
   }
View Full Code Here

      XMLResource resource = new XMLResource(sName, url, true);

      if (m_resourceMap == null)
      {
         m_resourceMap = new HashTab();
      }

      m_resourceMap.put(sName, resource);

      if (m_rootResourceMap == null)
      {
         m_rootResourceMap = new HashTab();
      }

      m_rootResourceMap.put(sName, resource);
      m_extensionMap = null;
   }
View Full Code Here

   public Lookup getExtensionMap()
   {
      if (m_extensionMap == null)
      {
         verifyNotReadOnly();
         m_extensionMap = new HashTab();

         if (m_resourceMap != null)
         {
            List resourceList = new ArrayList(m_resourceMap.size());
View Full Code Here

TOP

Related Classes of nexj.core.util.HashTab

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.