public abstract class SimpleType extends XMLType implements Referable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FINAL_ALL
The value of the final attribute used for
blocking all types of derivation
|
static java.lang.String |
FINAL_LIST
The value of the final attribute used for
blocking list derivation
|
static java.lang.String |
FINAL_RESTRICTION
The value of the final attribute used for
blocking restriction derivation
|
static java.lang.String |
FINAL_UNION
The value of the final attribute used for
blocking union derivation
|
NULL_ARGUMENTANNOTATION, ANYTYPE, APPINFO, ATTRIBUTE, ATTRIBUTE_GROUP, COMPLEX_CONTENT, COMPLEX_TYPE, DOCUMENTATION, ELEMENT, FACET, GROUP, IDENTITY_FIELD, IDENTITY_SELECTOR, KEY, KEYREF, LIST, MODELGROUP, MODELGROUP_REF, REDEFINE, SCHEMA, SIMPLE_CONTENT, SIMPLE_TYPE, UNION, UNIQUE, UNKNOWN, WILDCARD| Constructor and Description |
|---|
SimpleType()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
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(java.lang.String name)
A helper method for classes which extend SimpleType.
|
SimpleType |
getBuiltInBaseType()
Returns the built in type this type is derived from.
|
Facet |
getFacet(java.lang.String name)
Returns the first facet associated with the given name
|
java.util.Enumeration |
getFacets()
Returns an Enumeration of all the Facets (including inherited)
facets for this type.
|
java.util.Enumeration |
getFacets(java.lang.String name)
Returns the facets associated with the given name
|
java.lang.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.
|
java.lang.Long |
getLength()
Returns the value of the length facet
result can be null
|
java.util.Enumeration |
getLocalFacets()
Returns the facets of this type (without the parent's facets)
|
java.lang.Long |
getMaxLength()
Returns the value of the maxlength facet
result can be null
|
java.lang.Long |
getMinLength()
Returns the value of the minlength facet
result can be null
|
Structure |
getParent()
Returns the parent Structure that contains this SimpleType.
|
java.lang.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(java.lang.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
|
boolean |
isRedefined()
Returns true if this simpleType is a redefinition.
|
boolean |
removeFacet(Facet facet)
Removes the given Facet from this SimpleType.
|
boolean |
removeFacet(java.lang.String name)
Removes the facet with the given name from this SimpleType.
|
protected static SimpleType |
resolveReference(SimpleType simpleType)
A helper method for classes which extend SimpleType.
|
void |
setFinal(java.lang.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 |
setRedefined()
Sets this Group has redefined.
|
(package private) void |
setTypeCode(int code)
Package private setter of the code for this simple type
|
void |
validate()
Checks the validity of this SimpleType defintion.
|
getBaseType, getDerivationMethod, getId, getName, getSchema, getType, isAnyType, isComplexType, isSimpleType, setBaseType, setDerivationMethod, setId, setName, setSchemaaddAnnotation, getAnnotations, removeAnnotationpublic static final java.lang.String FINAL_ALL
public static final java.lang.String FINAL_LIST
public static final java.lang.String FINAL_UNION
public static final java.lang.String FINAL_RESTRICTION
public void addFacet(Facet facet)
facet - the Facet to add to this Simpletypepublic Facet getFacet(java.lang.String name)
public java.util.Enumeration getFacets(java.lang.String name)
public java.util.Enumeration getFacets()
public java.lang.String getFinal()
public java.util.Enumeration getLocalFacets()
public SimpleType getBuiltInBaseType()
public Structure getParent()
public java.lang.String getReferenceId()
getReferenceId in interface ReferableReferablepublic boolean hasFacet(java.lang.String name)
name - the name of the Facet to look forpublic boolean isBuiltInType()
public boolean isRedefined()
public void setRedefined()
public int getTypeCode()
void setTypeCode(int code)
public java.lang.Long getLength()
public java.lang.Long getMinLength()
public java.lang.Long getMaxLength()
public boolean removeFacet(Facet facet)
Removes only local facets.
facet - the Facet to removepublic boolean removeFacet(java.lang.String name)
Removes only local facets.
name - the name of the Facet to removepublic void setFinal(java.lang.String finalValue)
finalValue - the value of the final property.java.lang.IllegalArgumentException - when the value is not a valid value.public short getStructureType()
getStructureType in class Structurepublic void validate()
throws ValidationException
validate in class StructureValidationException - when this SimpleType definition
is invalid.protected SimpleType createReference(java.lang.String name)
protected static SimpleType resolveReference(SimpleType simpleType)
createReference(java.lang.String)protected void setParent(Structure parent)
protected void copyFacets(SimpleType target)
target - the SimpleType to copy facets toIntalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com