public abstract class

ComplexType

extends Object
java.lang.Object
   ↳ org.apache.commons.betwixt.schema.ComplexType
Known Direct Subclasses

Class Overview

Models a complexType. Global (top level) complex types are represented by GlobalComplexType. Locally defined or referenced complex types are represented by LocalComplexType.

Summary

Fields
protected List attributes
protected List elements
Public Constructors
ComplexType()
ComplexType(TranscriptionConfiguration configuration, ElementDescriptor elementDescriptor, Schema schema)
Public Methods
void addAttribute(Attribute attribute)
Adds an attribute to those contained by this type
void addElement(LocalElement element)
Adds an element to those contained by this type
void addElement(ElementReference element)
Adds an element to those contained by this type
List getAttributes()
Gets the attributes contained by this type.
List getElements()
Gets the elements contained by this type
Protected Methods
ElementDescriptor fillDescriptor(ElementDescriptor elementDescriptor, Schema schema)
Fills the given descriptor
void init(TranscriptionConfiguration configuration, ElementDescriptor elementDescriptor, Schema schema)
[Expand]
Inherited Methods
From class java.lang.Object

Fields

protected List attributes

protected List elements

Public Constructors

public ComplexType ()

public ComplexType (TranscriptionConfiguration configuration, ElementDescriptor elementDescriptor, Schema schema)

Public Methods

public void addAttribute (Attribute attribute)

Adds an attribute to those contained by this type

public void addElement (LocalElement element)

Adds an element to those contained by this type

public void addElement (ElementReference element)

Adds an element to those contained by this type

public List getAttributes ()

Gets the attributes contained by this type.

Returns
  • List of attributes

public List getElements ()

Gets the elements contained by this type

Returns
  • List of contained elements, not null

Protected Methods

protected ElementDescriptor fillDescriptor (ElementDescriptor elementDescriptor, Schema schema)

Fills the given descriptor

protected void init (TranscriptionConfiguration configuration, ElementDescriptor elementDescriptor, Schema schema)