org.exolab.castor.xml.schema
public abstract class XMLType extends Annotated
Version: $Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:36 $
| Field Summary | |
|---|---|
| protected static String | NULL_ARGUMENT
Error message for a null argument |
| Constructor Summary | |
|---|---|
| XMLType()
Default constructor
| |
| Method Summary | |
|---|---|
| XMLType | getBaseType()
Returns the base type that this type inherits from.
|
| String | getDerivationMethod()
Gets the name of the derivation method used to derive this type from its
parent. null for primitive types. |
| String | getId()
Returns the Id for this ComplexType, or null if no Id has been set.
|
| String | getName()
Returns the name of this type (null if none was defined)
|
| Schema | getSchema()
Returns the schema to which this type belongs |
| XMLType | getType()
Returns the type this type "really" represents
("this" in most cases), provides the indirection needed by references
and forward declarations. |
| boolean | isAnyType()
Returns true if this XMLType is an AnyType |
| boolean | isComplexType()
Returns true if this XMLType is a ComplexType |
| boolean | isSimpleType()
Returns true if this XMLType is a SimpleType |
| void | setBaseType(XMLType baseType)
Sets the base type for this datatype |
| void | setDerivationMethod(String derivationMethod)
Sets the derivation method name |
| void | setId(String id)
Sets the Id for this XMLType. |
| void | setName(String name)
Sets the name of this type |
| protected abstract void | setParent(Structure parent)
Sets the parent for this XMLType
|
| void | setSchema(Schema schema)
Sets the name of this SimpleType |
Returns: the parent type.
Returns: the Id for this ComplexType, or null if no Id has been set.
Returns: the Schema to which this type belongs
Returns: true if this XMLType is an AnyType
Returns: true if this XMLType is a ComplexType
Returns: true if this XMLType is a SimpleType
Parameters: base the base type which this datatype inherits from
Parameters: id the unique Id for this XMLType
Parameters: name of the type
Parameters: parent the parent Structure for this XMLType
Parameters: schema the Schema to which this Simpletype belongs