Class ModelGroup

    • Field Detail

      • TYPE_SEQUENCE

        public static final int TYPE_SEQUENCE
        Type of model group: SEQUENCE.
        See Also:
        Constant Field Values
      • TYPE_CHOICE

        public static final int TYPE_CHOICE
        Type of model group: CHOICE.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ModelGroup

        public ModelGroup()
        Creates a new unnamed Model Group property.
      • ModelGroup

        public ModelGroup​(Atom atom)
        Creates a new named Model Group property.
        Parameters:
        atom - The name.
    • Method Detail

      • getGroupType

        public int getGroupType()
        Gets the group type: ALL, SEQUENCE or CHOICE.
        Returns:
        The value TYPE_ALL, TYPE_SEQUENCE or TYPE_CHOICE.
      • getMaxOccurs

        public int getMaxOccurs()
        Gets the maximum number of times this model group can occur in the parent element. The value can be any number >= 0, or if you want to set no limit on the maximum number, use the value "unbounded". Default value is 1.
        Returns:
        -1 if "unbounded", otherwise the maximum occurrence value.
      • getMinOccurs

        public int getMinOccurs()
        Gets the minimum number of times this model group can occur in the parent element. The value can be any number >= 0.
        Returns:
        The min-occurs value, default value is 1.
      • buildMessage

        public void buildMessage​(IMessageBuilder messageBuilder,
                                 javax.xml.soap.SOAPElement parent,
                                 javax.xml.soap.SOAPElement current,
                                 boolean isProduction)
                          throws PropException,
                                 javax.xml.soap.SOAPException
        Builds the SOAP message to send it.
        Specified by:
        buildMessage in class SchemaComponent
        Parameters:
        messageBuilder - The message builder.
        parent - The parent element.
        current - The current element, null if not already created.
        isProduction - Flag indicating the data is "production data" as opposed to sample/template.
        Throws:
        PropException - For build error of a property.
        javax.xml.soap.SOAPException - For SOAP errors.