public abstract class ComplexType extends Object
complexType
. Global (top level) complex types are
represented by GlobalComplexType
. Locally defined or referenced
complex types are represented by LocalComplexType
.Modifier and Type | Field and Description |
---|---|
protected List |
attributes |
protected List |
elements |
Constructor and Description |
---|
ComplexType() |
ComplexType(TranscriptionConfiguration configuration,
ElementDescriptor elementDescriptor,
Schema schema) |
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(Attribute attribute)
Adds an attribute to those contained by this type
|
void |
addElement(ElementReference element)
Adds an element to those contained by this type
|
void |
addElement(LocalElement element)
Adds an element to those contained by this type
|
protected ElementDescriptor |
fillDescriptor(ElementDescriptor elementDescriptor,
Schema schema)
Fills the given descriptor
|
List |
getAttributes()
Gets the attributes contained by this type.
|
List |
getElements()
Gets the elements contained by this type
|
protected void |
init(TranscriptionConfiguration configuration,
ElementDescriptor elementDescriptor,
Schema schema) |
public ComplexType()
public ComplexType(TranscriptionConfiguration configuration, ElementDescriptor elementDescriptor, Schema schema) throws IntrospectionException
IntrospectionException
protected ElementDescriptor fillDescriptor(ElementDescriptor elementDescriptor, Schema schema) throws IntrospectionException
elementDescriptor
- schema
- IntrospectionException
protected void init(TranscriptionConfiguration configuration, ElementDescriptor elementDescriptor, Schema schema) throws IntrospectionException
IntrospectionException
public List getElements()
List
of contained elements, not nullpublic void addElement(ElementReference element)
element
- public void addElement(LocalElement element)
element
- public List getAttributes()
List
of attributespublic void addAttribute(Attribute attribute)
attribute
- Copyright © 2002-2013 Apache Software Foundation. All Rights Reserved.