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: 1.1.1.1 $ $Date: 2003/03/03 07:09:35 $
- Author:
- Arnaud Berry, Keith Visco
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 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, getFacet, getFacets, getFacets, getFinal, getLength, getLocalFacets, getMaxLength, getMinLength, getParent, getReferenceId, getTypeCode, hasFacet, isBuiltInType, isRedefined, removeFacet, removeFacet, resolveReference, setFinal, setParent, setRedefined, setTypeCode, validate |
Methods inherited from class org.exolab.castor.xml.schema.XMLType |
getBaseType, getDerivationMethod, getId, getName, getSchema, isAnyType, isComplexType, isSimpleType, setBaseType, setDerivationMethod, setId |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
getType
XMLType getType()
- Returns the referred type
- Overrides:
getType
in class XMLType
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 class SimpleType
- 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.
- Overrides:
setName
in class XMLType
- Parameters:
the
- schema that this Union belongs to.
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.
- Overrides:
setSchema
in class XMLType
- Parameters:
the
- schema that this SimpleType that is being referenced
belongs to.
Intalio Inc. (C) 1999-2004. All rights reserved http://www.intalio.com