org.exolab.castor.xml.schema

Class SimpleTypeReference

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

Constructor Summary
SimpleTypeReference(Schema schema, String name)
Creates a new SimpleTypeReference.
Method Summary
shortgetStructureType()
Returns Structure.UNKNOWN (This class should not be seen outside AttributeDecl (and ElementDecl ?)
XMLTypegetType()
Returns the referred type
voidresolveTypeReference()
Resolves the type reference.
voidsetName(String name)
Sets the Schema for this Union.
voidsetSchema(Schema schema)
Sets the Schema for this SimpleTypeReference.

Constructor Detail

SimpleTypeReference

SimpleTypeReference(Schema schema, 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

getStructureType

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

getType

XMLType getType()
Returns the referred type

resolveTypeReference

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.

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.

Parameters: the schema that this SimpleType that is being referenced belongs to.

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