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

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

public class SimpleTypeDefinition
extends java.lang.Object

A simple class used when unmarshalling simpleTypes

Version:
$Revision: 7492 $ $Date: 2004-10-01 07:25:46 -0600 (Fri, 01 Oct 2004) $
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
 SimpleType createSimpleType()
          Creates the SimpleType instance which represents this SimpleTypeDefinition
 void setBaseType(SimpleType baseType)
          Sets the base type for this SimpleTypeDefinition.
 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

public 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

createSimpleType

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

Returns:
the new SimpleType instance.

setBaseType

public 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

setFinal

public 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.


Copyright © 2011. All Rights Reserved.