org.exolab.castor.xml.schema

Class DeferredSimpleType

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

Constructor Summary
DeferredSimpleType()
Creates a new default DeferredSimpleType.
DeferredSimpleType(String name)
Creates a new DeferredSimpleType
DeferredSimpleType(String name, Schema schema)
Creates a new DeferredSimpleType
Method Summary
protected voidcreateInstance()
Resolves the parents of this simple type in order to create the instance of the appropriate class deriving from simple type and fill it.
shortgetStructureType()
Returns Structure.UNKNOWN (This class should not be seen outside AttributeDecl and ElementDecl anyway)
XMLTypegetType()
Package private getter of the simpleType instance.
voidsetBaseTypeName(String baseTypeName)
Sets the name of the base type that couldn't be resolved when this type was created.

Constructor Detail

DeferredSimpleType

DeferredSimpleType()
Creates a new default DeferredSimpleType.

DeferredSimpleType

DeferredSimpleType(String name)
Creates a new DeferredSimpleType

Parameters: name the name of the SimpleType.

DeferredSimpleType

DeferredSimpleType(String name, Schema schema)
Creates a new DeferredSimpleType

Parameters: name the name of the SimpleType. schema the parent Schema of the SimpleType.

Method Detail

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)

getType

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

setBaseTypeName

public void setBaseTypeName(String baseTypeName)
Sets the name of the base type that couldn't be resolved when this type was created.
Intalio Inc. (C) 1999-2004. All rights reserved http://www.intalio.com