org.apache.commons.betwixt.schema
Class ComplexType

java.lang.Object
  extended by org.apache.commons.betwixt.schema.ComplexType
Direct Known Subclasses:
GlobalComplexType, LocalComplexType

public abstract class ComplexType
extends Object

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

Version:
$Revision: 561314 $
Author:
Apache Commons Team

Field Summary
protected  List attributes
           
protected  List elements
           
 
Constructor Summary
ComplexType()
           
ComplexType(TranscriptionConfiguration configuration, ElementDescriptor elementDescriptor, Schema schema)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

elements

protected List elements

attributes

protected List attributes
Constructor Detail

ComplexType

public ComplexType()

ComplexType

public ComplexType(TranscriptionConfiguration configuration,
                   ElementDescriptor elementDescriptor,
                   Schema schema)
            throws IntrospectionException
Throws:
IntrospectionException
Method Detail

fillDescriptor

protected ElementDescriptor fillDescriptor(ElementDescriptor elementDescriptor,
                                           Schema schema)
                                    throws IntrospectionException
Fills the given descriptor

Parameters:
elementDescriptor -
schema -
Returns:
@throws IntrospectionException
Throws:
IntrospectionException
Since:
0.7

init

protected void init(TranscriptionConfiguration configuration,
                    ElementDescriptor elementDescriptor,
                    Schema schema)
             throws IntrospectionException
Throws:
IntrospectionException

getElements

public List getElements()
Gets the elements contained by this type

Returns:
List of contained elements, not null

addElement

public void addElement(ElementReference element)
Adds an element to those contained by this type

Parameters:
element -

addElement

public void addElement(LocalElement element)
Adds an element to those contained by this type

Parameters:
element -

getAttributes

public List getAttributes()
Gets the attributes contained by this type.

Returns:
List of attributes

addAttribute

public void addAttribute(Attribute attribute)
Adds an attribute to those contained by this type

Parameters:
attribute -


Copyright © 2002-2009 Apache Software Foundation. All Rights Reserved.