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:
java.io.Serializable
,Referable
class SimpleTypeReference extends SimpleType
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
Constructors Constructor Description SimpleTypeReference(Schema schema, java.lang.String name)
Creates a new SimpleTypeReference.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description short
getStructureType()
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
resolveTypeReference()
Resolves the type reference.void
setName(java.lang.String name)
Sets the Schema for this Union.void
setSchema(Schema schema)
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 Detail
-
SimpleTypeReference
SimpleTypeReference(Schema schema, java.lang.String name)
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 Detail
-
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
public void setName(java.lang.String name)
Sets the Schema for this Union. This method overloads the SimpleType#setSchema method to prevent the Schema from being changed.
-
setSchema
public void setSchema(Schema schema)
Sets the Schema for this SimpleTypeReference. This method overloads the SimpleType#setSchema method to prevent the Schema from being changed.
-
-