Package nexj.core.meta.integration

Examples of nexj.core.meta.integration.MessagePartMapping


      while (iterator.hasNext())
      {
         Message message = (Message)iterator.next();
         CompositeMessagePart root = message.getRoot();
         MessagePartMapping mapping = root.getMapping();

         if (mapping != null)
         {
            try
            {
               mapping.finish(root);
            }
            catch (UncheckedException ex)
            {
               if (comp == null)
               {
View Full Code Here


         CompositeMessagePart composite = (CompositeMessagePartInstance)m_messagePart;

         for (int i = 0, nCount = composite.getPartCount(); i < nCount; i++)
         {
            MessagePart child = composite.getPart(i);
            MessagePartMapping mapping = child.getMapping();

            if (mapping != null)
            {
               mapping.finish(child);
            }
         }
      }
   }
View Full Code Here

               new Object[]{part.getFullPath()});
         }

         // call finish() on the records part
         MessagePart recordsPart = rootPart.getPart(0);
         MessagePartMapping recordsMapping = recordsPart.getMapping();

         if (recordsMapping != null)
         {
            recordsMapping.finish(recordsPart);
         }
      }
      else if (m_nLevel == 1)
      {
         //The second level should have a CompositeMessagePart of 0..* cardinality
         if (!part.isCollection())
         {
            throw new MetadataException("err.meta.integration.fixed.mustHaveTopLevelCollection",
               new Object[]{part.getFullPath()});
         }

         // Call finish() for child mappings
         CompositeMessagePart recordPart = (CompositeMessagePartInstance)m_messagePart;
         for (int i=0; i < recordPart.getPartCount(); i++)
         {
            MessagePart fieldPart = recordPart.getPart(i);
            MessagePartMapping fieldMapping = fieldPart.getMapping();

            fieldMapping.finish(fieldPart);
         }

         createRecordTemplate();
      }
      else
View Full Code Here

TOP

Related Classes of nexj.core.meta.integration.MessagePartMapping

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.