public class SchemaElementComplex extends Object implements SchemaElement, Serializable
Constructor and Description |
---|
SchemaElementComplex(String name,
String namespace,
List<SchemaItemAttribute> attributes,
List<SchemaElementComplex> children,
List<SchemaElementSimple> simpleElements,
boolean isArray,
Short optionalSimpleType,
String optionalSimpleTypeName)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
List<SchemaItemAttribute> |
getAttributes()
Returns attributes.
|
List<SchemaElementComplex> |
getChildren()
Returns attributes.
|
String |
getName()
Returns the name.
|
String |
getNamespace()
Returns the namespace.
|
Short |
getOptionalSimpleType()
Null if not a simple type declared, or type if declared.
|
String |
getOptionalSimpleTypeName()
Returns type name if itself has a type.
|
List<SchemaElementSimple> |
getSimpleElements()
Returns simple child elements.
|
boolean |
isArray()
Returns true if unbound or max greater one.
|
String |
toString() |
public SchemaElementComplex(String name, String namespace, List<SchemaItemAttribute> attributes, List<SchemaElementComplex> children, List<SchemaElementSimple> simpleElements, boolean isArray, Short optionalSimpleType, 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 String getName()
getName
in interface SchemaElement
public String getNamespace()
SchemaElement
getNamespace
in interface SchemaElement
public List<SchemaItemAttribute> getAttributes()
public List<SchemaElementComplex> getChildren()
public List<SchemaElementSimple> getSimpleElements()
public boolean isArray()
isArray
in interface SchemaElement
public Short getOptionalSimpleType()
public String getOptionalSimpleTypeName()