Class TypeReference
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.TypeReference
- All Implemented Interfaces:
Serializable
Package private class to handles type references.
- Version:
- $Revision:
- Author:
- Arnaud Berry
- 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 TypeMethodDescriptionshortReturns Structure.UNKNOWN (This class should not be seen outside ElementDecl anyway)protected voidSets the parent for this Schema typevoidvalidate()Checks the validity of this type defintion.Methods inherited from class XMLType
getBaseType, getBaseTypeName, getDerivationMethod, getId, getName, getSchema, isAnyType, isComplexType, isSimpleType, setBaseType, setDerivationMethod, setId, setName, 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.getName()Returns the name of this type (null if none was defined)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 SimpleTypevoidsetBaseType(XMLType baseType) Sets the base type for this datatypevoidsetDerivationMethod(String derivationMethod) Sets the derivation method namevoidSets the Id for this XMLType.voidSets the name of this typevoidSets 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
-
TypeReference
public TypeReference()
-
-
Method Details
-
setParent
-
getStructureType
public short getStructureType()Returns Structure.UNKNOWN (This class should not be seen outside ElementDecl anyway)- Specified by:
getStructureTypein classStructure- Returns:
- the type of this Schema Structure.
-
validate
Checks the validity of this type defintion.- Specified by:
validatein classStructure- Throws:
ValidationException- when this type definition is invalid.
-