Package org.exolab.castor.xml.schema
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 org.exolab.castor.xml.schema.XMLType
NULL_ARGUMENTFields 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionshortReturns Structure.UNKNOWN (This class should not be seen outside ElementDecl anyway)(package private) XMLTypegetType()Returns the referred type(package private) voidResolves the type reference.protected voidSets the parent for this Schema typevoidvalidate()Checks the validity of this type defintion.Methods inherited from class org.exolab.castor.xml.schema.XMLType
getBaseType, getBaseTypeName, getDerivationMethod, getId, getName, getSchema, isAnyType, isComplexType, isSimpleType, setBaseType, setDerivationMethod, setId, setName, setSchemaMethods inherited from class org.exolab.castor.xml.schema.Annotated
addAnnotation, getAnnotations, removeAnnotation
-
Constructor Details
-
TypeReference
public TypeReference()
-
-
Method Details
-
getType
XMLType getType()Returns the referred type -
resolveTypeReference
void resolveTypeReference()Resolves the type reference. -
setParent
Sets the parent for this Schema type -
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.
-