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
public class TypeReference
- extends XMLType
Package private class to handles type references.
- Version:
- $Revision:
- Author:
- Arnaud Berry
- See Also:
- Serialized Form
| 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 |
short |
getStructureType()
Returns Structure.UNKNOWN
(This class should not be seen outside ElementDecl anyway) |
protected void |
setParent(Structure parent)
Sets the parent for this Schema type |
void |
validate()
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, setSchema |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TypeReference
public TypeReference()
setParent
protected void setParent(Structure parent)
- Sets the parent for this Schema type
- Specified by:
setParent in class XMLType
- Parameters:
parent - the parent Structure for SchemaType
getStructureType
public short getStructureType()
- Returns Structure.UNKNOWN
(This class should not be seen outside ElementDecl anyway)
- Specified by:
getStructureType in class Structure
- Returns:
- the type of this Schema Structure.
validate
public void validate()
throws ValidationException
- Checks the validity of this type defintion.
- Specified by:
validate in class Structure
- Throws:
ValidationException - when this type definition
is invalid.
Copyright © 2012. All Rights Reserved.