Class SimpleTypeDefinition
java.lang.Object
org.exolab.castor.xml.schema.reader.SimpleTypeDefinition
A simple class used when unmarshalling simpleTypes
- Version:
- $Revision$ $Date: 2004-10-01 07:25:46 -0600 (Fri, 01 Oct 2004) $
- Author:
- Keith Visco
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the given Facet to the list of Facets for this SimpleTypeDefinitionCreates the SimpleType instance which represents this SimpleTypeDefinitionvoid
setBaseType
(SimpleType baseType) Sets the base type for this SimpleTypeDefinition.void
Sets the value of the 'final' property, indicating which types of derivation are not allowed.
-
Constructor Details
-
SimpleTypeDefinition
-
-
Method Details
-
addFacet
Adds the given Facet to the list of Facets for this SimpleTypeDefinition- Parameters:
facet
- the Facet to add
-
createSimpleType
Creates the SimpleType instance which represents this SimpleTypeDefinition- Returns:
- the new SimpleType instance.
-
setBaseType
Sets the base type for this SimpleTypeDefinition. This method is mutually exclusive with #setBaseTypeName- Parameters:
baseType
- the base type for this SimpleTypeDefinition
-
setFinal
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.
-