org.exolab.castor.xml.schema
public abstract class SimpleType extends XMLType implements Referable
Version: $Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:34 $
| Field Summary | |
|---|---|
| static String | FINAL_ALL
The value of the final attribute used for
blocking all types of derivation
|
| static String | FINAL_LIST
The value of the final attribute used for
blocking list derivation
|
| static String | FINAL_RESTRICTION
The value of the final attribute used for
blocking restriction derivation
|
| static String | FINAL_UNION
The value of the final attribute used for
blocking union derivation
|
| Constructor Summary | |
|---|---|
| SimpleType()
Default constructor | |
| Method Summary | |
|---|---|
| void | addFacet(Facet facet)
Adds the given Facet to this Simpletype. |
| protected void | copyFacets(SimpleType target)
Copy this type's facets to the target type.
|
| protected SimpleType | createReference(String name)
A helper method for classes which extend SimpleType. |
| SimpleType | getBuiltInBaseType()
Returns the built in type this type is derived from. |
| Facet | getFacet(String name)
Returns the first facet associated with the given name |
| Enumeration | getFacets(String name)
Returns the facets associated with the given name |
| Enumeration | getFacets()
Returns an Enumeration of all the Facets (including inherited)
facets for this type. |
| String | getFinal()
Returns the value of the 'final' property, indicating which
types of derivation are not allowed, or null if the final property
has not been set.
|
| Long | getLength()
Returns the value of the length facet
result can be null
|
| Enumeration | getLocalFacets()
Returns the facets of this type (without the parent's facets) |
| Long | getMaxLength()
Returns the value of the maxlength facet
result can be null
|
| Long | getMinLength()
Returns the value of the minlength facet
result can be null
|
| Structure | getParent()
Returns the parent Structure that contains this SimpleType.
|
| String | getReferenceId()
Returns the Id used to Refer to this Object. |
| short | getStructureType()
Returns the type of this Schema Structure |
| int | getTypeCode()
Gets the code for this simple type
(as defined in SimpleTypesFactory)
|
| boolean | hasFacet(String name)
Returns true if this Simpletype has a specified Facet
with the given name. |
| boolean | isBuiltInType()
Returns true if this SimpleType is a built in type |
| protected static SimpleType | resolveReference(SimpleType simpleType)
A helper method for classes which extend SimpleType. |
| void | setFinal(String finalValue)
Sets the value of the 'final' property, indicating which
types of derivation are not allowed. |
| protected void | setParent(Structure parent)
Sets the parent for this SimpleType |
| void | setTypeCode(int code) Package private setter of the code for this simple type * |
| void | validate()
Checks the validity of this SimpleType defintion.
|
Parameters: facet the Facet to add to this Simpletype
Parameters: target the SimpleType to copy facets to
Returns: the reference to the SimpleType.
Returns: the first facet associated with the given name
Returns: the facets associated with the given name
Returns: an Enumeration of all the Facets for this type
Returns: the value of the final property or null if no value has been set
Returns: the parent of this SimpleType
Returns: the type of this Schema Structure
Returns: the type code for this simple type
Parameters: name the name of the Facet to look for
Returns: true if this Simpletype has a specified Facet with the given name
Returns: true if this SimpleType is a built in type
Returns: the resolved SimpleType.
See Also: createReference
Parameters: finalValue the value of the final property.
Throws: IllegalArgumentException when the value is not a valid value.
Parameters: parent the Structure that contains this SimpleType. Currently this should only be Schema, ElementDecl or AttributeDecl.
Throws: ValidationException when this SimpleType definition is invalid.