Class SchemaElementComplex
java.lang.Object
com.espertech.esper.common.internal.event.xml.SchemaElementComplex
- All Implemented Interfaces:
SchemaElement
,SchemaItem
,Serializable
Represents a complex element possibly with attributes, simple elements, other complex child elements
and may itself have a simple type.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSchemaElementComplex
(String name, String namespace, List<SchemaItemAttribute> attributes, List<SchemaElementComplex> children, List<SchemaElementSimple> simpleElements, boolean isArray, Short optionalSimpleType, String optionalSimpleTypeName) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionReturns attributes.Returns attributes.getName()
Returns the name.Returns the namespace.Null if not a simple type declared, or type if declared.Returns type name if itself has a type.Returns simple child elements.boolean
isArray()
Returns true if unbound or max greater one.toString()
-
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 namenamespace
- the element namespaceattributes
- the attributes or empty if nonechildren
- the child complex elements or empty if nonesimpleElements
- the simple elements or empty if noneisArray
- if unbound or max>1optionalSimpleType
- if the element does itself have a typeoptionalSimpleTypeName
- if the element does itself have a type
-
-
Method Details
-
getName
Returns the name.- Specified by:
getName
in interfaceSchemaElement
- Returns:
- name
-
getNamespace
Description copied from interface:SchemaElement
Returns the namespace.- Specified by:
getNamespace
in interfaceSchemaElement
- Returns:
- namespace
-
getAttributes
Returns attributes.- Returns:
- attributes
-
getChildren
Returns attributes.- Returns:
- attributes
-
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 interfaceSchemaElement
- Returns:
- true if array
-
getOptionalSimpleType
Null if not a simple type declared, or type if declared.- Returns:
- simple type name
-
getOptionalSimpleTypeName
Returns type name if itself has a type.- Returns:
- type name
-
toString
-