Class MessageBuilder


  • public class MessageBuilder
    extends java.lang.Object
    Builds the properties required for a message on the input or output side.
    Author:
    Christopher Mindus
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static boolean DEBUG
      Flag for debug of Schema visit.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void build​(Message message, boolean isOutput)
      Builds the properties.
      void buildFaults​(BindingOperation bop, PropCnr parent)
      Builds the elements required in a faults container.
      java.util.List<java.lang.String> getBuildMessages()
      Gets the unhandled elements of the last call to buildPart(Part, boolean).
      java.util.List<EditorMessagePart> getPartProps()
      Gets the parts as properties.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DEBUG

        public static boolean DEBUG
        Flag for debug of Schema visit.
    • Constructor Detail

      • MessageBuilder

        public MessageBuilder​(XSSchemaSet schemas)
        Creates a new instance.
        Parameters:
        schemas - The schema set.
    • Method Detail

      • build

        public void build​(Message message,
                          boolean isOutput)
                   throws BuildSchemaException
        Builds the properties.
        Parameters:
        message - The message.
        isOutput - Flag to build the output.
        Throws:
        BuildSchemaException - If the properties cannot be built.
      • getPartProps

        public java.util.List<EditorMessagePart> getPartProps()
        Gets the parts as properties.
        Returns:
        The message parts.
      • getBuildMessages

        public java.util.List<java.lang.String> getBuildMessages()
        Gets the unhandled elements of the last call to buildPart(Part, boolean).
        Returns:
        A List of strings with unhandled elements, or cyclic declarations.
      • buildFaults

        public void buildFaults​(BindingOperation bop,
                                PropCnr parent)
        Builds the elements required in a faults container.
        Parameters:
        bop - The binding operation.
        parent - The parent container.