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 java.lang.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  java.util.List attributes
           
protected  java.util.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
 java.util.List getAttributes()
          Gets the attributes contained by this type.
 java.util.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 java.util.List elements

attributes

protected java.util.List attributes
Constructor Detail

ComplexType

public ComplexType()

ComplexType

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

fillDescriptor

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

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

init

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

getElements

public java.util.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 java.util.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-2008 The Apache Software Foundation. All Rights Reserved.