Package org.exolab.castor.xml.schema
Class SimpleTypeReference
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.SimpleType
org.exolab.castor.xml.schema.SimpleTypeReference
- All Implemented Interfaces:
Serializable
,Referable
Package private class to handles simple-type references.
- Version:
- $Revision: 6230 $ $Date: 2005-12-13 14:58:48 -0700 (Tue, 13 Dec 2005) $
- Author:
- Arnaud Berry, Keith Visco
-
Field Summary
Fields inherited from class org.exolab.castor.xml.schema.SimpleType
FINAL_ALL, FINAL_LIST, FINAL_RESTRICTION, FINAL_UNION
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
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleTypeReference
(Schema schema, String name) Creates a new SimpleTypeReference. -
Method Summary
Modifier and TypeMethodDescriptionshort
Returns Structure.UNKNOWN (This class should not be seen outside AttributeDecl (and ElementDecl ?) anyway)(package private) XMLType
getType()
Returns the referred type(package private) void
Resolves the type reference.void
Sets the Schema for this Union.void
Sets the Schema for this SimpleTypeReference.Methods inherited from class org.exolab.castor.xml.schema.SimpleType
addFacet, copyFacets, createReference, getBuiltInBaseType, getEffectiveFacets, getFacet, getFacets, getFacets, getFinal, getLength, getLocalFacets, getMaxLength, getMinLength, getNumberOfFacets, getParent, getReferenceId, getTypeCode, hasFacet, isBuiltInType, isDateTimeType, isNumericType, isRedefined, removeFacet, removeFacet, resolveReference, setFinal, setParent, setRedefined, setTypeCode, validate
Methods inherited from class org.exolab.castor.xml.schema.XMLType
getBaseType, getBaseTypeName, getDerivationMethod, getId, getName, getSchema, isAnyType, isComplexType, isSimpleType, setBaseType, setDerivationMethod, setId
Methods inherited from class org.exolab.castor.xml.schema.Annotated
addAnnotation, getAnnotations, removeAnnotation
-
Constructor Details
-
SimpleTypeReference
Creates a new SimpleTypeReference.- Parameters:
name
- the name of the simple type being referenced, must not be null.schema
- the parent Schema of the simple type being referenced, must not be null.
-
-
Method Details
-
getType
XMLType getType()Returns the referred type -
resolveTypeReference
void resolveTypeReference()Resolves the type reference. -
getStructureType
public short getStructureType()Returns Structure.UNKNOWN (This class should not be seen outside AttributeDecl (and ElementDecl ?) anyway)- Overrides:
getStructureType
in classSimpleType
- Returns:
- the type of this Schema Structure
-
setName
Sets the Schema for this Union. This method overloads the SimpleType#setSchema method to prevent the Schema from being changed. -
setSchema
Sets the Schema for this SimpleTypeReference. This method overloads the SimpleType#setSchema method to prevent the Schema from being changed.
-