org.exolab.castor.xml.schema
Class DeferredSimpleType

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.DeferredSimpleType
All Implemented Interfaces:
java.io.Serializable, Referable

 class DeferredSimpleType
extends SimpleType

Package private class to handle the case where a simple type can't be instanciated because its parent has not yet been read.

Version:
$Revision:
Author:
Arnaud Berry

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
DeferredSimpleType()
          Creates a new default DeferredSimpleType.
DeferredSimpleType(java.lang.String name)
          Creates a new DeferredSimpleType
DeferredSimpleType(java.lang.String name, Schema schema)
          Creates a new DeferredSimpleType
 
Method Summary
protected  void createInstance()
          Resolves the parents of this simple type in order to create the instance of the appropriate class deriving from simple type and fill it.
 short getStructureType()
          Returns Structure.UNKNOWN (This class should not be seen outside AttributeDecl and ElementDecl anyway)
(package private)  XMLType getType()
          Package private getter of the simpleType instance.
 void setBaseTypeName(java.lang.String baseTypeName)
          Sets the name of the base type that couldn't be resolved when this type was created.
 
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, setName, setSchema
 
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

DeferredSimpleType

DeferredSimpleType()
Creates a new default DeferredSimpleType.


DeferredSimpleType

DeferredSimpleType(java.lang.String name)
Creates a new DeferredSimpleType

Parameters:
name - the name of the SimpleType.

DeferredSimpleType

DeferredSimpleType(java.lang.String name,
                   Schema schema)
Creates a new DeferredSimpleType

Parameters:
name - the name of the SimpleType.
schema - the parent Schema of the SimpleType.
Method Detail

setBaseTypeName

public void setBaseTypeName(java.lang.String baseTypeName)
Sets the name of the base type that couldn't be resolved when this type was created.


getType

XMLType getType()
Package private getter of the simpleType instance.

Overrides:
getType in class XMLType

createInstance

protected void createInstance()
Resolves the parents of this simple type in order to create the instance of the appropriate class deriving from simple type and fill it.


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


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