Package nexj.core.meta.integration

Examples of nexj.core.meta.integration.MessagePartMapping


    * @param part The part being formatted.
    * @return The formatted string.
    */
   public String format(Object value, PrimitiveMessagePart part)
   {
      MessagePartMapping mapping = part.getMapping();
      Format format = (Format)m_partFormatMap.get(mapping);
      Object cvtValue = part.convertValue(value);

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


    * @param part The part being parsed.
    * @return The parsed value.
    */
   public Object parse(String sValue, PrimitiveMessagePart part)
   {
      MessagePartMapping mapping = part.getMapping();
      Format format = (Format)m_partFormatMap.get(mapping);

      if (format == null)
      {
         m_partFormatMap.put(mapping, format = getFormat(((FormatHolder)mapping).getFormat(), part));
View Full Code Here

         CompositeMessagePart composite = (CompositeMessagePartInstance)part;

         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);
            }
         }
      }

      if (part.equals(part.getRoot()) && part instanceof CompositeMessagePart)
View Full Code Here

         CompositeMessagePart composite = (CompositeMessagePartInstance)part;

         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

         }

         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

    * @see nexj.core.meta.integration.MessagePartMapping#refer(CompositeMessagePartRef)
    */
   public void refer(CompositeMessagePartRef ref)
   {
      CompositeMessagePart parent = ref.getParent();
      MessagePartMapping mapping = (parent == null) ? null : parent.getMapping();

      if (mapping != null &&
         ((HL7MessagePartMapping)mapping).getLevel() >= ((m_nLevel == LEVEL_GROUP) ? LEVEL_SEGMENT : m_nLevel))
      {
         throw new MetadataException("err.meta.integration.hl7.refLevel", new Object[]{ref.getFullPath()});
View Full Code Here

         }

         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

         CompositeMessagePart composite = (CompositeMessagePart)part;

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

            if (mapping != null)
            {
               if (bInstance)
               {
                  mapping.finish(child);
               }

               if (child.isRequired()
                     && ((XMLMessagePartMapping)mapping).getNodeType() == XMLMessagePartMapping.ATTRIBUTE)
               {
View Full Code Here

      part.setDeclarator(message);
      loadDocumentation(partElement, part);

      if (message.getFormat() != null)
      {
         MessagePartMapping mapping = ((XMLMessageMappingLoader)m_helper.getClassInstance(message.getFormat().getLoader()))
            .loadMapping(partElement, message, part, message.getFormat(), this);

         part.setMapping(mapping);

         if (mapping != null)
         {
            mapping.init(part);
         }
      }
   }
View Full Code Here

            {
               CompositeMessagePart root = m_metadata.getMessage(sRef).getRoot();

               partRef.setRefPart(root);

               MessagePartMapping rootMapping = root.getMapping();

               if (rootMapping != null)
               {
                  if (partRef.getMapping() == null)
                  {
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.