Class SimpleTypeDefinition
java.lang.Object
org.exolab.castor.xml.schema.reader.SimpleTypeDefinition
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the given Facet to the list of Facets for this SimpleTypeDefinition(package private) voidcopyInto(SimpleType simpleType) Copies the name, facets and annotations of this SimpleTypeDefinition into the given SimpleType.Creates the SimpleType instance which represents this SimpleTypeDefinition(package private) Object(package private) SchemaReturns the Schema for this SimpleTypeDefinition(package private) voidsetAnnotation(Annotation annotation) Sets the annotation for this SimpleTypeDefinitionvoidsetBaseType(SimpleType baseType) Sets the base type for this SimpleTypeDefinition.(package private) voidsetBaseTypeName(String baseTypeName) Sets the base type for this SimpleTypeDefinition.voidSets 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
-
copyInto
Copies the name, facets and annotations of this SimpleTypeDefinition into the given SimpleType.- Parameters:
simpleType- the SimpleType to copy into.
-
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
Sets the annotation for this SimpleTypeDefinition- Parameters:
annotation- the Annotation for this SimpleTypeDefinition
-
setBaseType
Sets the base type for this SimpleTypeDefinition. This method is mutually exclusive with #setBaseTypeName- Parameters:
baseType- the base type for this SimpleTypeDefinition
-
setBaseTypeName
Sets the base type for this SimpleTypeDefinition. This method is mutually exclusive with #setBaseType- Parameters:
baseTypeName- 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.
-
getBaseType
Object getBaseType()
-