org.exolab.castor.xml.schema

Class SimpleTypeReference

Implemented Interfaces:
Referable, java.io.Serializable

(package private) 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 $
Authors:
Arnaud Berry
Keith Visco
See Also:
Serialized Form

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

SimpleTypeReference(Schema schema, String name)
Creates a new SimpleTypeReference.

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(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, getStructureType, getTypeCode, hasFacet, isBuiltInType, resolveReference, setFinal, setParent, setTypeCode, validate

Methods inherited from class org.exolab.castor.xml.schema.XMLType

getBaseType, getDerivationMethod, getId, getName, getSchema, getType, isAnyType, isComplexType, isSimpleType, setBaseType, setDerivationMethod, setId, setName, setParent, setSchema

Methods inherited from class org.exolab.castor.xml.schema.Annotated

addAnnotation, getAnnotations, removeAnnotation

Methods inherited from class org.exolab.castor.xml.schema.Structure

getStructureType, isValid, validate

Constructor Details

SimpleTypeReference

(package private)  SimpleTypeReference(Schema schema,
                                       String name)
Creates a new SimpleTypeReference.
Parameters:
schema - the parent Schema of the simple type being referenced, must not be null.
name - the name of the simple type being referenced, must not be null.

Method Details

getStructureType

public short getStructureType()
Returns Structure.UNKNOWN (This class should not be seen outside AttributeDecl (and ElementDecl ?) anyway)
Overrides:
getStructureType in interface SimpleType

getType

(package private)  XMLType getType()
Returns the referred type
Overrides:
getType in interface XMLType

resolveTypeReference

(package private)  void resolveTypeReference()
Resolves the type reference.

setName

public void setName(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 interface XMLType
Parameters:

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 interface XMLType
Parameters:

Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com