public class SchemaElementComplex extends java.lang.Object implements SchemaElement, java.io.Serializable
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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() |
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)
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 typepublic java.lang.String getName()
getName
in interface SchemaElement
public java.lang.String getNamespace()
SchemaElement
getNamespace
in interface SchemaElement
public java.util.List<SchemaItemAttribute> getAttributes()
public java.util.List<SchemaElementComplex> getChildren()
public java.util.List<SchemaElementSimple> getSimpleElements()
public boolean isArray()
isArray
in interface SchemaElement
public java.lang.Short getOptionalSimpleType()
public java.lang.String getOptionalSimpleTypeName()
public java.lang.String toString()
toString
in class java.lang.Object