com.espertech.esper.event.xml
Class SchemaElementComplex

java.lang.Object
  extended by com.espertech.esper.event.xml.SchemaElementComplex
All Implemented Interfaces:
SchemaElement, SchemaItem, java.io.Serializable

public class SchemaElementComplex
extends java.lang.Object
implements SchemaElement, java.io.Serializable

Represents a complex element possibly with attributes, simple elements, other complex child elements and may itself have a simple type.

See Also:
Serialized Form

Constructor Summary
SchemaElementComplex(java.lang.String name, java.lang.String namespace, java.util.List<SchemaItemAttribute> attributes, java.util.List<SchemaElementComplex> children, java.util.List<SchemaElementSimple> simpleElements, boolean isArray, java.lang.Short optionalSimpleType, java.lang.String optionalSimpleTypeName)
          Ctor.
 
Method Summary
 java.util.List<SchemaItemAttribute> getAttributes()
          Returns attributes.
 java.util.List<SchemaElementComplex> getChildren()
          Returns attributes.
 java.lang.String getName()
          Returns the name.
 java.lang.String getNamespace()
          Returns the namespace.
 java.lang.Short getOptionalSimpleType()
          Null if not a simple type declared, or type if declared.
 java.lang.String getOptionalSimpleTypeName()
          Returns type name if itself has a type.
 java.util.List<SchemaElementSimple> getSimpleElements()
          Returns simple child elements.
 boolean isArray()
          Returns true if unbound or max greater one.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SchemaElementComplex

public SchemaElementComplex(java.lang.String name,
                            java.lang.String namespace,
                            java.util.List<SchemaItemAttribute> attributes,
                            java.util.List<SchemaElementComplex> children,
                            java.util.List<SchemaElementSimple> simpleElements,
                            boolean isArray,
                            java.lang.Short optionalSimpleType,
                            java.lang.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 Detail

getName

public java.lang.String getName()
Returns the name.

Specified by:
getName in interface SchemaElement
Returns:
name

getNamespace

public java.lang.String getNamespace()
Description copied from interface: SchemaElement
Returns the namespace.

Specified by:
getNamespace in interface SchemaElement
Returns:
namespace

getAttributes

public java.util.List<SchemaItemAttribute> getAttributes()
Returns attributes.

Returns:
attributes

getChildren

public java.util.List<SchemaElementComplex> getChildren()
Returns attributes.

Returns:
attributes

getSimpleElements

public java.util.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 java.lang.Short getOptionalSimpleType()
Null if not a simple type declared, or type if declared.

Returns:
simple type name

getOptionalSimpleTypeName

public java.lang.String getOptionalSimpleTypeName()
Returns type name if itself has a type.

Returns:
type name

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com