org.exolab.castor.xml.schema
Class SimpleTypeReference

java.lang.Object
  extended by org.exolab.castor.xml.schema.Structure
      extended by org.exolab.castor.xml.schema.Annotated
          extended by org.exolab.castor.xml.schema.XMLType
              extended by org.exolab.castor.xml.schema.SimpleType
                  extended by 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
SimpleTypeReference(Schema schema, java.lang.String name)
          Creates a new SimpleTypeReference.
 
Method Summary
 short getStructureType()
          Returns Structure.UNKNOWN (This class should not be seen outside AttributeDecl (and ElementDecl ?)
(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
 
Methods inherited from class org.exolab.castor.xml.schema.Structure
isValid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

Overrides:
getType in class XMLType
Returns:
the type this type "really" represents

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:
name - 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:
schema - the schema that this SimpleType that is being referenced belongs to.


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