Class ComplexType

  • All Implemented Interfaces:
    EventListener, IGProp<GProp<?>[]>, IPropCnr, java.lang.Cloneable
    Direct Known Subclasses:
    EditorComplexType

    public class ComplexType
    extends SchemaComponent
    The complexType element defines a complex type. A complex type element is an XML element that contains other elements and/or attributes.

    Parent elements: element, redefine, schema.

    Syntax:

     [complexType
     id=ID
     name=NCName
     abstract=true|false
     mixed=true|false
     block=(#all|list of (extension|restriction))
     final=(#all|list of (extension|restriction))
     any attributes
     ]
     
     (annotation?,(simpleContent|complexContent|((group|all|
     choice|sequence)?,((attribute|attributeGroup)*,anyAttribute?))))
     
     [/complexType]
     
    Author:
    Christopher Mindus
    • Constructor Detail

      • ComplexType

        public ComplexType()
        Creates a new unnamed Complex Type schema property.
      • ComplexType

        public ComplexType​(Atom atom)
        Creates a new named Complex Type schema property.
        Parameters:
        atom - The name.
    • Method Detail

      • isMixed

        public boolean isMixed()
        Gets whether character data is allowed to appear between the child elements of this complexType element. Default is false.
        Returns:
        The mixed flag.
      • 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.