org.exolab.castor.xml.schema
Class XMLType
- java.io.Serializable
public abstract class XMLType
The base type for XML Schema types, such as complex types
and simple types.
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:36 $protected static String | NULL_ARGUMENT - Error message for a null argument
|
ANNOTATION , ANYTYPE , APPINFO , ATTRIBUTE , ATTRIBUTE_GROUP , COMPLEX_CONTENT , COMPLEX_TYPE , DOCUMENTATION , ELEMENT , FACET , GROUP , IDENTITY_FIELD , IDENTITY_SELECTOR , KEY , KEYREF , LIST , MODELGROUP , MODELGROUP_REF , REDEFINE , SCHEMA , SIMPLE_CONTENT , SIMPLE_TYPE , UNION , UNIQUE , UNKNOWN , WILDCARD |
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.
|
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
|
(package private) 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
|
NULL_ARGUMENT
protected static String NULL_ARGUMENT
Error message for a null argument
XMLType
public XMLType()
Default constructor
getBaseType
public XMLType getBaseType()
Returns the base type that this type inherits from.
If this type is a Simpletype that is a built in primitive type then null is returned.
getDerivationMethod
public String getDerivationMethod()
Gets the name of the derivation method used to derive this type from its
parent. null for primitive types.
getId
public String getId()
Returns the Id for this ComplexType, or null if no Id has been set.
- the Id for this ComplexType, or null if no Id has been set.
getName
public String getName()
Returns the name of this type (null if none was defined)
getSchema
public Schema getSchema()
Returns the schema to which this type belongs
- the Schema to which this type belongs
getType
(package private) XMLType getType()
Returns the type this type "really" represents
("this" in most cases), provides the indirection needed by references
and forward declarations.
isAnyType
public final boolean isAnyType()
Returns true if this XMLType is an AnyType
- true if this XMLType is an AnyType
isComplexType
public final boolean isComplexType()
Returns true if this XMLType is a ComplexType
- true if this XMLType is a ComplexType
isSimpleType
public final boolean isSimpleType()
Returns true if this XMLType is a SimpleType
- true if this XMLType is a SimpleType
setBaseType
public void setBaseType(XMLType baseType)
Sets the base type for this datatype
setDerivationMethod
public void setDerivationMethod(String derivationMethod)
Sets the derivation method name
setId
public void setId(String id)
Sets the Id for this XMLType. The Id must be globally unique
within the Schema. Use a null value to remove the Id.
id
- the unique Id for this XMLType
setName
public void setName(String name)
Sets the name of this type
setParent
protected abstract void setParent(Structure parent)
Sets the parent for this XMLType
parent
- the parent Structure for this XMLType
setSchema
public void setSchema(Schema schema)
Sets the name of this SimpleType
schema
- the Schema to which this Simpletype belongs
Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com