Package org.exolab.castor.xml.schema
Class AnyType
- java.lang.Object
-
- org.exolab.castor.xml.schema.Structure
-
- org.exolab.castor.xml.schema.Annotated
-
- org.exolab.castor.xml.schema.XMLType
-
- org.exolab.castor.xml.schema.AnyType
-
- All Implemented Interfaces:
java.io.Serializable
public final class AnyType extends XMLType
A Class which represents the XML Schema AnyType.- Version:
- $Revision: 6230 $ $Date: 2005-12-13 14:58:48 -0700 (Tue, 13 Dec 2005) $
- Author:
- Keith Visco
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.exolab.castor.xml.schema.XMLType
NULL_ARGUMENT
-
Fields inherited from class org.exolab.castor.xml.schema.Structure
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()Returns the name of this type.shortgetStructureType()Returns the type of this Schema Structure.voidsetBaseType(XMLType baseType)Overrides XMLType#setBaseType(), anyType cannot have a Base type.voidsetDerivationMethod(java.lang.String derivationMethod)Overrides XMLType#setDerivationMethod, anyType cannot be derived from any other type.voidsetId(java.lang.String id)Sets the Id for this XMLType.voidsetName(java.lang.String name)Overrides XMLType#setName.protected voidsetParent(Structure parent)Sets the parent for this XMLTypevoidvalidate()Checks the validity of this Schema defintion.-
Methods inherited from class org.exolab.castor.xml.schema.XMLType
getBaseType, getBaseTypeName, getDerivationMethod, getId, getSchema, getType, isAnyType, isComplexType, isSimpleType, setSchema
-
Methods inherited from class org.exolab.castor.xml.schema.Annotated
addAnnotation, getAnnotations, removeAnnotation
-
-
-
-
Constructor Detail
-
AnyType
public AnyType(Schema schema)
Creates a new AnyType for the given Schema.
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the name of this type. This method always returns 'anyType'.
-
getStructureType
public short getStructureType()
Returns the type of this Schema Structure. This method returns Structure.ANYTYPE.- Specified by:
getStructureTypein classStructure- Returns:
- the type of this Schema Structure.
-
setName
public void setName(java.lang.String name)
Overrides XMLType#setName. The Name of anyType cannot be changed.
-
setBaseType
public void setBaseType(XMLType baseType)
Overrides XMLType#setBaseType(), anyType cannot have a Base type.- Overrides:
setBaseTypein classXMLType- Parameters:
baseType- the base type which this datatype inherits from
-
setDerivationMethod
public void setDerivationMethod(java.lang.String derivationMethod)
Overrides XMLType#setDerivationMethod, anyType cannot be derived from any other type.- Overrides:
setDerivationMethodin classXMLType- Parameters:
derivationMethod- the derivation method.
-
setId
public void setId(java.lang.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.
-
validate
public void validate() throws ValidationExceptionChecks the validity of this Schema defintion.- Specified by:
validatein classStructure- Throws:
ValidationException- when this Schema definition is invalid.
-
-