org.apache.commons.betwixt.schema
Class ComplexType
java.lang.Object
|
+--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: 190515 $
- Author:
- Jakarta Commons Team
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
elements
protected java.util.List elements
attributes
protected java.util.List attributes
ComplexType
public ComplexType()
ComplexType
public ComplexType(TranscriptionConfiguration configuration,
ElementDescriptor elementDescriptor,
Schema schema)
throws java.beans.IntrospectionException
fillDescriptor
protected ElementDescriptor fillDescriptor(ElementDescriptor elementDescriptor,
Schema schema)
throws java.beans.IntrospectionException
- Fills the given descriptor
- Parameters:
elementDescriptor
- schema
- - Returns:
- @throws
IntrospectionException
- Since:
- 0.7
init
protected void init(TranscriptionConfiguration configuration,
ElementDescriptor elementDescriptor,
Schema schema)
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-2005 The Apache Software Foundation. All Rights Reserved.