Package nexj.core.meta.integration

Examples of nexj.core.meta.integration.Message


            type.setAggregation(CompositeType.AGGREGATION_CHOICE);

            for (Iterator itr = iface.getRequestTable().getMessageIterator(); itr.hasNext(); )
            {
               Message msg = (Message)itr.next();
               CompositeMessagePart rootPart = msg.getRoot();
               XMLMessagePartMapping rootPartMapping = (XMLMessagePartMapping)rootPart.getMapping();

               if (rootPartMapping.getNamespace() != null)
               {
                  CompositeType childType = createCompositeType(rootPart, msg);
View Full Code Here


    * @return The message object.
    * @throws MetadataLookupException if the message does not exist.
    */
   public Message getMessage(String sName)
   {
      Message message = (Message) m_messageMap.get(sName);

      if (message != null)
      {
         return message;
      }
View Full Code Here

    * Formats a reference to the child message.
    * Reference is not polymorphic, so no xsi:type should be generated.
    */
   public void testFormatChild1_Child1Referrer()
   {
      Message msg = m_context.getMetadata().getMessage("XML_Inherit_Child1_Referrer");
      StringWriter writer = new StringWriter();
      WriterOutput out = new WriterOutput(writer);
      TransferObject root = new TransferObject("XML_Inherit_Child1_Referrer", 3);
      TransferObject polyRoot = new TransferObject(2);

View Full Code Here

   /**
    * Parses a reference to the child message.
    */
   public void testParseChild1_Child1Referrer()
   {
      Message msg = m_context.getMetadata().getMessage("XML_Inherit_Child1_Referrer");
      StringInput in = new StringInput(XML_HEADER +
         "<childReferrer>" +
         "<name>123</name>" +
         "<child1>" +
            "<b>23</b>" +
View Full Code Here

   /**
    * Tests directly formatting a non-polymorphic message with one of its sub-messages.
    */
   public void testFormatNonPolymorphicMessage()
   {
      Message msgChild1 = m_context.getMetadata().getMessage("XML_Inherit_Child1");
      StringWriter writer = new StringWriter();
      WriterOutput out = new WriterOutput(writer);
      TransferObject root = new TransferObject(3);

      root.setClassName("XML_Inherit_Child1_Child");
View Full Code Here

   /**
    * Tests directly parsing to a non-polymorphic message one of its sub-messages.
    */
   public void testParseNonPolymorphicMessage()
   {
      Message msgChild1 = m_context.getMetadata().getMessage("XML_Inherit_Child1");
      StringInput in = new StringInput(XML_HEADER +
         "<child1 xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:type=\"Child1ChildType\">" +
            "<b>23</b>" +
            "<c1>31</c1>" +
            "<c1c>C1Cvalue</c1c>" +
View Full Code Here

    * Child2: inherits from "Parent", root element is "child2"
    * Child3: inherits from "Parent", root element is "parent"
    */
   public void testFormatAnyTypeInterface()
   {
      Message message = m_context.getMetadata().getMessage("XMLAnyTest");
      TransferObject root = new TransferObject("XMLAnyTest", 1);
      TransferObject any = new TransferObject(2);
      StringWriter writer;
      WriterOutput out;

View Full Code Here

    * Child3: inherits from "Parent", root element is "parent"
    */
   public void testParseAnyTypeInterface()
   {
      TransferObject root;
      Message message = m_context.getMetadata().getMessage("XMLAnyTest");

      // Parse child1
      root = m_parser.parse(new StringInput(
         "<XMLAnyTest>" +
            "<anyInterfaceInheritanceElement>" +
View Full Code Here

         assertEquals("XML_Inherit_Parent_Parent", cause.getErrorArgs()[2]);
      }


      // Format the pure message
      Message msgParent = m_context.getMetadata().getMessage("XML_Inherit_Parent");

      root = polyRoot;
      writer = new StringWriter();
      out = new WriterOutput(writer);
View Full Code Here

   /**
    * Tests that SOAP headers may be modified by sub-messages.
    */
   public void testFormatSOAPHeader()
   {
      Message parentMessage = m_context.getMetadata().getMessage("XML_Inherit_SOAP_Header_Parent");
      Message childMessage = m_context.getMetadata().getMessage("XML_Inherit_SOAP_Header_Child");
      StringWriter writer = new StringWriter();
      WriterOutput out = new WriterOutput(writer);
      TransferObject root = new TransferObject("XML_Inherit_SOAP_Header_Parent", 3);
      TransferObject headerRoot = new TransferObject(2);

View Full Code Here

TOP

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

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.