Public Member Functions | |
AnyType (Schema schema) | |
String | getName () |
short | getStructureType () |
synchronized void | setName (String name) |
void | setBaseType (XMLType baseType) |
void | setDerivationMethod (String derivationMethod) |
void | setId (String id) |
void | validate () throws ValidationException |
Protected Member Functions | |
void | setParent (Structure parent) |
A Class which represents the XML Schema AnyType.
org.exolab.castor.xml.schema.AnyType.AnyType | ( | Schema | schema | ) |
Creates a new AnyType for the given Schema.
References org.exolab.castor.xml.schema.XMLType.setSchema().
String org.exolab.castor.xml.schema.AnyType.getName | ( | ) |
Returns the name of this type. This method always returns 'anyType'.
Reimplemented from org.exolab.castor.xml.schema.XMLType.
short org.exolab.castor.xml.schema.AnyType.getStructureType | ( | ) | [virtual] |
Returns the type of this Schema Structure. This method returns Structure.ANYTYPE.
Implements org.exolab.castor.xml.schema.Structure.
void org.exolab.castor.xml.schema.AnyType.setBaseType | ( | XMLType | baseType | ) |
Overrides XMLType.setBaseType(), anyType cannot have a Base type.
base | the base type which this datatype inherits from |
Reimplemented from org.exolab.castor.xml.schema.XMLType.
void org.exolab.castor.xml.schema.AnyType.setDerivationMethod | ( | String | derivationMethod | ) |
Overrides XMLType.setDerivationMethod, anyType cannot be derived from any other type.
derivationMethod | the derivation method. |
Reimplemented from org.exolab.castor.xml.schema.XMLType.
void org.exolab.castor.xml.schema.AnyType.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 |
Reimplemented from org.exolab.castor.xml.schema.XMLType.
synchronized void org.exolab.castor.xml.schema.AnyType.setName | ( | String | name | ) |
Overrides XMLType.setName. The Name of anyType cannot be changed.
name | of the type |
Reimplemented from org.exolab.castor.xml.schema.XMLType.
void org.exolab.castor.xml.schema.AnyType.setParent | ( | Structure | parent | ) | [protected, virtual] |
Sets the parent for this XMLType
Implements org.exolab.castor.xml.schema.XMLType.
void org.exolab.castor.xml.schema.AnyType.validate | ( | ) | throws ValidationException [virtual] |
Checks the validity of this Schema defintion.
ValidationException | when this Schema definition is invalid. |
Implements org.exolab.castor.xml.schema.Structure.