Package nexj.core.util

Examples of nexj.core.util.HashTab2D


               }
               else
               {
                  if (m_annotationMap == null)
                  {
                     m_annotationMap = new HashTab2D();
                  }

                  m_annotationMap.put(instance, sAnnotation, mapping);
               }
            }
View Full Code Here


    * @param left The left TO.
    * @param right The right TO.
    */
   public static void assertEquals(TransferObject left, TransferObject right)
   {
      assertEquals(left, right, new HashTab2D());
   }
View Full Code Here

               {
                  if (element.getParentNode() != null && element.getParentNode().getParentNode() != null)
                  {
                     if (m_bindingSoapActionMap == null)
                     {
                        m_bindingSoapActionMap = new HashTab2D();
                     }
                    
                     m_bindingSoapActionMap.put(element.getParentNode().getParentNode(), parentName(element), element.getAttribute("soapAction"));
                  }
                    
View Full Code Here

   /**
    * @see nexj.core.meta.workflow.Flow#compile(nexj.core.scripting.Machine)
    */
   protected void compile(Machine machine) throws CompilerException
   {
      Lookup2D map = new HashTab2D(m_functionMap.size());

      // Compile the flow functions
      for (Lookup2D.Iterator itr = m_functionMap.valueIterator(); itr.hasNext();)
      {
         itr.next();

         Event event = (Event)itr.getKey1();
         Pair body = (Pair)machine.invoke((Function)machine.getGlobalEnvironment()
            .getVariable(Symbol.SYS_GENERATE_FLOW_FUNCTION), itr.getValue(), (Object[])null);

         itr.setValue(new Pair(new Compiler().compile(m_variables,
            event.getArguments(true), body, m_posMap, m_urlMap, machine)));
         map.put(event.getRoot(), itr.getKey2(), null);
      }

      for (Lookup2D.Iterator itr = map.valueIterator(); itr.hasNext();)
      {
         itr.next();

         addDerivedFlowFunctions((Pair)itr.getKey2(), (Event)itr.getKey1(),
            (Pair)m_functionMap.get(itr.getKey1(), itr.getKey2()));
View Full Code Here

      Message rootBaseMessage = m_message.getRootBaseMessage();
      RootXMLMessagePartMapping rsmMapping = (RootXMLMessagePartMapping)rootBaseMessage.getRoot().getMapping();

      if (rsmMapping.m_xsdTypeMessageMap == null)
      {
         rsmMapping.m_xsdTypeMessageMap = new HashTab2D();
      }

      Message oldMessage = (Message)rsmMapping.m_xsdTypeMessageMap.put(sNamespaceURI, sXSDType, message);

      if (oldMessage != null && message != oldMessage)
View Full Code Here

    * @param reader The character stream reader.
    * @return The deserialized object.
    */
   public Object deserialize(Reader reader) throws IOException, UnmarshallerException
   {
      m_objectMap = new HashTab2D();

      return parse(new TextPositionReader(reader), null);
   }
View Full Code Here

            s_logger.dump(tobj);
         }

         m_instanceByTobjMap = new HashTab();
         m_invocationList = new ArrayList();
         m_queryMap = new HashTab2D();
         m_infoObjectByTobjMap = new HashTab();

         Object obj = (composite.isCollection()) ? Collections.singletonList(tobj) : (Object)tobj;

         prepareFind(obj, composite);
View Full Code Here

            s_logger.debug("Parsing object message \"" + message.getName() + "\"");
            s_logger.dump(in);
         }

         m_instanceMap = new HashTab();
         m_processedSet = new HashTab2D();

         TransferObject tobj = (TransferObject)transfer(in.getObject(), message.getRoot());

         GenericServer.auditResponse(m_instanceMap, m_context);
View Full Code Here

      }
     
      try
      {
         m_instanceMap = new HashTab();
         m_processedSet = new HashTab2D();
        
         TransferObject tobj = (TransferObject)transfer(in.getObject(), message.getRoot());

         GenericServer.auditResponse(m_instanceMap, m_context);
View Full Code Here

   /**
    * @see nexj.core.integration.MessageParser#initializeMessageTable(nexj.core.meta.integration.MessageTable)
    */
   public void initializeMessageTable(MessageTable table) throws IntegrationException
   {
      Lookup2D map = new HashTab2D();

      for (Iterator itr = table.getMessageIterator(); itr.hasNext();)
      {
         Message message = (Message)itr.next();
         HL7MessagePartMapping mapping = (HL7MessagePartMapping)message.getRoot().getMapping();

         if (mapping.getLevel() != HL7MessagePartMapping.LEVEL_MESSAGE)
         {
            throw new MetadataException("err.meta.integration.hl7.messageLevel",
               new Object[]{message.getName()});
         }

         String sName = mapping.getName();

         if (sName == null)
         {
            throw new MetadataException("err.meta.integration.hl7.missingMessageType",
               new Object[]{message.getName()});
         }

         String sType;
         String sEvent;
         int i = sName.indexOf('^');

         if (i < 0)
         {
            sType = sName;
            sEvent = "";
         }
         else
         {
            sType = sName.substring(0, i);

            int k = sName.indexOf('^', i + 1);

            if (k < 0)
            {
               sEvent = sName.substring(i + 1);
            }
            else
            {
               sEvent = sName.substring(i + 1, k);
            }
         }

         Message old = (Message)map.put(sType, sEvent, message);

         if (old != null)
         {
            throw new MetadataException("err.meta.integration.hl7.dupMessageType",
               new Object[]{sType, sEvent, old.getName(), message.getName()});
View Full Code Here

TOP

Related Classes of nexj.core.util.HashTab2D

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.