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:
Serializable
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:
-
Field Summary
Fields inherited from class XMLType
NULL_ARGUMENTFields inherited from class 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, WILDCARDModifier and TypeFieldDescriptionstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final short -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()Returns the name of this type.shortReturns the type of this Schema Structure.voidsetBaseType(XMLType baseType) Overrides XMLType#setBaseType(), anyType cannot have a Base type.voidsetDerivationMethod(String derivationMethod) Overrides XMLType#setDerivationMethod, anyType cannot be derived from any other type.voidSets the Id for this XMLType.voidOverrides XMLType#setName.protected voidSets the parent for this XMLTypevoidvalidate()Checks the validity of this Schema defintion.Methods inherited from class XMLType
getBaseType, getBaseTypeName, getDerivationMethod, getId, getSchema, isAnyType, isComplexType, isSimpleType, setSchemaModifier and TypeMethodDescriptionReturns the base type that this type inherits from.If this type has a base type, this returns its name.
Returns null otherwise.Gets the name of the derivation method used to derive this type from its parent.getId()Returns the Id for this ComplexType, or null if no Id has been set.Returns the schema to which this type belongsfinal booleanReturns true if this XMLType is an AnyTypefinal booleanReturns true if this XMLType is a ComplexTypefinal booleanReturns true if this XMLType is a SimpleTypevoidSets the name of this SimpleTypeMethods inherited from class Annotated
addAnnotation, getAnnotations, removeAnnotationModifier and TypeMethodDescriptionvoidaddAnnotation(Annotation annotation) Adds the given Annotation to this Annotated Structure.Returns an Enumeration of the Annotations contained within this Annotated type.voidremoveAnnotation(Annotation annotation) Removes the given Annotation from this Annotated Structure.
-
Constructor Details
-
AnyType
Creates a new AnyType for the given Schema.
-
-
Method Details
-
getName
-
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
-
setBaseType
Overrides XMLType#setBaseType(), anyType cannot have a Base type.- Overrides:
setBaseTypein classXMLType- Parameters:
baseType- the base type which this datatype inherits from
-
setDerivationMethod
Overrides XMLType#setDerivationMethod, anyType cannot be derived from any other type.- Overrides:
setDerivationMethodin classXMLType- Parameters:
derivationMethod- the derivation method.
-
setId
-
validate
Checks the validity of this Schema defintion.- Specified by:
validatein classStructure- Throws:
ValidationException- when this Schema definition is invalid.
-
setParent
-