org.exolab.castor.xml.schema.reader
Class SimpleTypeDefinition

java.lang.Object
  extended by org.exolab.castor.xml.schema.reader.SimpleTypeDefinition

 class SimpleTypeDefinition
extends java.lang.Object

A simple class used when unmarshalling simpleTypes

Version:
$Revision: 1.2 $ $Date: 2004/10/01 13:25:25 $
Author:
Keith Visco

Constructor Summary
SimpleTypeDefinition(Schema schema, java.lang.String name, java.lang.String id)
           
 
Method Summary
 void addFacet(Facet facet)
          Adds the given Facet to the list of Facets for this SimpleTypeDefinition
(package private)  void copyInto(SimpleType simpleType)
          Copies the name, facets and annotations of this SimpleTypeDefinition into the given SimpleType.
(package private)  SimpleType createSimpleType()
          Creates the SimpleType instance which represents this SimpleTypeDefinition
(package private)  Schema getSchema()
          Returns the Schema for this SimpleTypeDefinition
(package private)  void setAnnotation(Annotation annotation)
          Sets the annotation for this SimpleTypeDefinition
(package private)  void setBaseType(SimpleType baseType)
          Sets the base type for this SimpleTypeDefinition.
(package private)  void setBaseTypeName(java.lang.String baseTypeName)
          Sets the base type for this SimpleTypeDefinition.
(package private)  void setFinal(java.lang.String finalValue)
          Sets the value of the 'final' property, indicating which types of derivation are not allowed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleTypeDefinition

SimpleTypeDefinition(Schema schema,
                     java.lang.String name,
                     java.lang.String id)
Method Detail

addFacet

public void addFacet(Facet facet)
Adds the given Facet to the list of Facets for this SimpleTypeDefinition

Parameters:
facet - the Facet to add

copyInto

void copyInto(SimpleType simpleType)
Copies the name, facets and annotations of this SimpleTypeDefinition into the given SimpleType.

Parameters:
simpleType - the SimpleType to copy into.

createSimpleType

SimpleType createSimpleType()
Creates the SimpleType instance which represents this SimpleTypeDefinition

Returns:
the new SimpleType instance.

getSchema

Schema getSchema()
Returns the Schema for this SimpleTypeDefinition

Returns:
the Schema for this SimpleTypeDefinition

setAnnotation

void setAnnotation(Annotation annotation)
Sets the annotation for this SimpleTypeDefinition

Parameters:
annotation - the Annotation for this SimpleTypeDefinition

setBaseType

void setBaseType(SimpleType baseType)
Sets the base type for this SimpleTypeDefinition. This method is mutually exclusive with #setBaseTypeName

Parameters:
baseType - the base type for this SimpleTypeDefinition

setBaseTypeName

void setBaseTypeName(java.lang.String baseTypeName)
Sets the base type for this SimpleTypeDefinition. This method is mutually exclusive with #setBaseType

Parameters:
baseType - the base type for this SimpleTypeDefinition

setFinal

void setFinal(java.lang.String finalValue)
Sets the value of the 'final' property, indicating which types of derivation are not allowed. A null value will indicate all types of derivation (list, restriction, union) are allowed.

Parameters:
finalValue - the value of the final property.


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