org.apache.xerces.impl.dv.xs
public class XSSimpleTypeDecl extends Object implements XSSimpleType, TypeInfo
Version: $Id: XSSimpleTypeDecl.java,v 1.74 2005/06/24 17:19:21 mrglavas Exp $
Field Summary | |
---|---|
static short | ANYATOMICTYPE_DT |
static short | DAYTIMEDURATION_DT |
XSObjectList | enumerationAnnotations |
XSAnnotation | fractionDigitsAnnotation |
XSAnnotation | lengthAnnotation |
XSAnnotation | maxExclusiveAnnotation |
XSAnnotation | maxInclusiveAnnotation |
XSAnnotation | maxLengthAnnotation |
XSAnnotation | minExclusiveAnnotation |
XSAnnotation | minInclusiveAnnotation |
XSAnnotation | minLengthAnnotation |
XSObjectListImpl | patternAnnotations |
static short | PRECISIONDECIMAL_DT |
XSAnnotation | totalDigitsAnnotation |
XSAnnotation | whiteSpaceAnnotation |
static short | YEARMONTHDURATION_DT |
Constructor Summary | |
---|---|
XSSimpleTypeDecl() | |
protected | XSSimpleTypeDecl(XSSimpleTypeDecl base, String name, short validateDV, short ordered, boolean bounded, boolean finite, boolean numeric, boolean isImmutable, short builtInKind) |
protected | XSSimpleTypeDecl(XSSimpleTypeDecl base, String name, String uri, short finalSet, boolean isImmutable, XSObjectList annotations, short builtInKind) |
protected | XSSimpleTypeDecl(XSSimpleTypeDecl base, String name, String uri, short finalSet, boolean isImmutable, XSObjectList annotations) |
protected | XSSimpleTypeDecl(String name, String uri, short finalSet, XSSimpleTypeDecl itemType, boolean isImmutable, XSObjectList annotations) |
protected | XSSimpleTypeDecl(String name, String uri, short finalSet, XSSimpleTypeDecl[] memberTypes, XSObjectList annotations) |
Method Summary | |
---|---|
void | applyFacets(XSFacets facets, short presentFacet, short fixedFacet, ValidationContext context)
If |
boolean | derivedFrom(String ancestorNS, String ancestorName, short derivation) |
boolean | derivedFromType(XSTypeDefinition ancestor, short derivation) |
ObjectList | getActualEnumeration()
A list of actual enumeration values if it exists, otherwise an empty
ObjectList . |
XSObjectList | getAnnotations()
[annotations]: a set of annotations for this simple type component if
it exists, otherwise an empty XSObjectList . |
boolean | getAnonymous() |
XSTypeDefinition | getBaseType() |
boolean | getBounded()
Fundamental Facet: bounded. |
short | getBuiltInKind()
Returns the closest built-in type category this type represents or
derived from. |
short | getDefinedFacets()
[facets]: all facets defined on this type. |
ObjectList | getEnumerationItemTypeList()
A list of enumeration type values (as a list of ShortList objects) if it exists, otherwise returns
null |
ShortList | getEnumerationTypeList() |
XSObjectList | getFacets()
A list of constraining facets if it exists, otherwise an empty
XSObjectList . |
short | getFinal() |
boolean | getFinite()
Fundamental Facet: cardinality. |
short | getFixedFacets()
[facets]: all defined facets for this type which are fixed. |
XSSimpleTypeDefinition | getItemType()
If variety is list the item type definition (an atomic or
union simple type definition) is available, otherwise
null . |
StringList | getLexicalEnumeration()
A list of enumeration values if it exists, otherwise an empty
StringList . |
String | getLexicalFacetValue(short facetName)
Convenience method. |
StringList | getLexicalPattern()
A list of pattern values if it exists, otherwise an empty
StringList . |
Object | getMaxExclusiveValue() |
Object | getMaxInclusiveValue() |
XSObjectList | getMemberTypes()
If variety is union the list of member type definitions (a
non-empty sequence of simple type definitions) is available,
otherwise an empty XSObjectList . |
Object | getMinExclusiveValue() |
Object | getMinInclusiveValue() |
XSObjectList | getMultiValueFacets()
A list of enumeration and pattern constraining facets if it exists,
otherwise an empty XSObjectList . |
String | getName() |
String | getNamespace() |
XSNamespaceItem | getNamespaceItem() |
boolean | getNumeric()
Fundamental Facet: numeric. |
short | getOrdered()
Fundamental Facet: ordered. |
short | getPrimitiveKind() |
XSSimpleTypeDefinition | getPrimitiveType()
If variety is atomic the primitive type definition (a
built-in primitive datatype definition or the simple ur-type
definition) is available, otherwise null . |
short | getType() |
short | getTypeCategory() |
String | getTypeName() |
String | getTypeNamespace() |
short | getVariety() |
short | getWhitespace() |
boolean | isDefinedFacet(short facetName)
Convenience method. |
boolean | isDerivedFrom(String typeNamespaceArg, String typeNameArg, int derivationMethod) |
boolean | isDOMDerivedFrom(String ancestorNS, String ancestorName, int derivationMethod)
Checks if a type is derived from another by restriction, given the name
and namespace. |
boolean | isEqual(Object value1, Object value2) |
boolean | isFinal(short derivation) |
boolean | isFixedFacet(short facetName)
Convenience method. |
boolean | isIdentical(Object value1, Object value2) |
boolean | isIDType() |
static String | normalize(String content, short ws) |
protected String | normalize(Object content, short ws) |
void | reset() |
void | setAnonymous(boolean anon) |
protected XSSimpleTypeDecl | setListValues(String name, String uri, short finalSet, XSSimpleTypeDecl itemType, XSObjectList annotations) |
protected XSSimpleTypeDecl | setRestrictionValues(XSSimpleTypeDecl base, String name, String uri, short finalSet, XSObjectList annotations) |
protected XSSimpleTypeDecl | setUnionValues(String name, String uri, short finalSet, XSSimpleTypeDecl[] memberTypes, XSObjectList annotations) |
String | toString() |
Object | validate(String content, ValidationContext context, ValidatedInfo validatedInfo)
validate a value, and return the compiled form |
Object | validate(Object content, ValidationContext context, ValidatedInfo validatedInfo)
validate a value, and return the compiled form |
void | validate(ValidationContext context, ValidatedInfo validatedInfo)
validate an actual value against this DV
|
ValidatedInfo | validateWithInfo(String content, ValidationContext context, ValidatedInfo validatedInfo)
validate a value, and return the compiled form |
ObjectList
.XSObjectList
.INTEGER_DV
is returned.XSObjectList
. Note: This method must not be used to
retrieve values for enumeration
and pattern
facets.list
the item type definition (an atomic or
union simple type definition) is available, otherwise
null
.StringList
.enumeration
and pattern
facets.Parameters: facetName The name of the facet, i.e.
FACET_LENGTH, FACET_TOTALDIGITS
(see
XSConstants
). To retrieve the value for a pattern or
an enumeration, see enumeration
and
pattern
.
Returns: A value of the facet specified in facetName
for
this simple type definition or null
.
StringList
.union
the list of member type definitions (a
non-empty sequence of simple type definitions) is available,
otherwise an empty XSObjectList
.XSObjectList
.See Also: org.apache.xerces.xs.XSObject#getNamespaceItem()
atomic
the primitive type definition (a
built-in primitive datatype definition or the simple ur-type
definition) is available, otherwise null
.Parameters: facetName The name of the facet.
Returns: True if the facet is defined, false otherwise.
Parameters: ancestorNS The namspace of the ancestor type declaration ancestorName The name of the ancestor type declaration derivationMethod The derivation method
Returns: boolean True if the ancestor type is derived from the reference type by the specifiied derivation method.
Parameters: facetName The name of the facet.
Returns: True if the facet is fixed, false otherwise.
See Also: java.lang.Object#toString()
Parameters: context the validation context validatedInfo used to provide the actual value and member types