Class SchemaElementComplex

java.lang.Object
com.espertech.esper.common.internal.event.xml.SchemaElementComplex
All Implemented Interfaces:
SchemaElement, SchemaItem, Serializable

public class SchemaElementComplex extends Object implements SchemaElement, Serializable
Represents a complex element possibly with attributes, simple elements, other complex child elements and may itself have a simple type.
See Also:
  • Constructor Details

    • SchemaElementComplex

      public SchemaElementComplex(String name, String namespace, List<SchemaItemAttribute> attributes, List<SchemaElementComplex> children, List<SchemaElementSimple> simpleElements, boolean isArray, Short optionalSimpleType, String optionalSimpleTypeName)
      Ctor.
      Parameters:
      name - the element name
      namespace - the element namespace
      attributes - the attributes or empty if none
      children - the child complex elements or empty if none
      simpleElements - the simple elements or empty if none
      isArray - if unbound or max>1
      optionalSimpleType - if the element does itself have a type
      optionalSimpleTypeName - if the element does itself have a type
  • Method Details

    • getName

      public String getName()
      Returns the name.
      Specified by:
      getName in interface SchemaElement
      Returns:
      name
    • getNamespace

      public String getNamespace()
      Description copied from interface: SchemaElement
      Returns the namespace.
      Specified by:
      getNamespace in interface SchemaElement
      Returns:
      namespace
    • getAttributes

      public List<SchemaItemAttribute> getAttributes()
      Returns attributes.
      Returns:
      attributes
    • getChildren

      public List<SchemaElementComplex> getChildren()
      Returns attributes.
      Returns:
      attributes
    • getSimpleElements

      public List<SchemaElementSimple> getSimpleElements()
      Returns simple child elements.
      Returns:
      simple child elements
    • isArray

      public boolean isArray()
      Returns true if unbound or max greater one.
      Specified by:
      isArray in interface SchemaElement
      Returns:
      true if array
    • getOptionalSimpleType

      public Short getOptionalSimpleType()
      Null if not a simple type declared, or type if declared.
      Returns:
      simple type name
    • getOptionalSimpleTypeName

      public String getOptionalSimpleTypeName()
      Returns type name if itself has a type.
      Returns:
      type name
    • toString

      public String toString()
      Overrides:
      toString in class Object