|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.apache.xerces.impl.dv.xs.XSSimpleTypeDecl
| Fields inherited from interface org.apache.xerces.impl.dv.XSSimpleType |
PRIMITIVE_ANYURI, PRIMITIVE_BASE64BINARY, PRIMITIVE_BOOLEAN, PRIMITIVE_DATE, PRIMITIVE_DATETIME, PRIMITIVE_DECIMAL, PRIMITIVE_DOUBLE, PRIMITIVE_DURATION, PRIMITIVE_FLOAT, PRIMITIVE_GDAY, PRIMITIVE_GMONTH, PRIMITIVE_GMONTHDAY, PRIMITIVE_GYEAR, PRIMITIVE_GYEARMONTH, PRIMITIVE_HEXBINARY, PRIMITIVE_NOTATION, PRIMITIVE_QNAME, PRIMITIVE_STRING, PRIMITIVE_TIME, WS_COLLAPSE, WS_PRESERVE, WS_REPLACE |
| Fields inherited from interface org.apache.xerces.impl.xs.psvi.XSTypeDefinition |
COMPLEX_TYPE, SIMPLE_TYPE |
| Fields inherited from interface org.apache.xerces.impl.xs.psvi.XSSimpleTypeDefinition |
FACET_ENUMERATION, FACET_FRACTIONDIGITS, FACET_LENGTH, FACET_MAXEXCLUSIVE, FACET_MAXINCLUSIVE, FACET_MAXLENGTH, FACET_MINEXCLUSIVE, FACET_MININCLUSIVE, FACET_MINLENGTH, FACET_NONE, FACET_PATTERN, FACET_TOTALDIGITS, FACET_WHITESPACE, ORDERED_FALSE, ORDERED_PARTIAL, ORDERED_TOTAL, VARIETY_ABSENT, VARIETY_ATOMIC, VARIETY_LIST, VARIETY_UNION |
| Constructor Summary | |
|
XSSimpleTypeDecl()
|
protected |
XSSimpleTypeDecl(java.lang.String name,
java.lang.String uri,
short finalSet,
XSSimpleTypeDecl[] memberTypes)
|
protected |
XSSimpleTypeDecl(java.lang.String name,
java.lang.String uri,
short finalSet,
XSSimpleTypeDecl itemType,
boolean isImmutable)
|
protected |
XSSimpleTypeDecl(XSSimpleTypeDecl base,
java.lang.String name,
short validateDV,
short ordered,
boolean bounded,
boolean finite,
boolean numeric,
boolean isImmutable)
|
protected |
XSSimpleTypeDecl(XSSimpleTypeDecl base,
java.lang.String name,
java.lang.String uri,
short finalSet,
boolean isImmutable)
|
| Method Summary | |
void |
applyFacets(XSFacets facets,
short presentFacet,
short fixedFacet,
ValidationContext context)
If |
boolean |
derivedFrom(java.lang.String ancestorNS,
java.lang.String ancestorName)
Experimental: return whether this type is derived from a type of the given namespace name and type name. |
boolean |
derivedFrom(XSTypeDefinition ancestor)
Experimental: return whether this type is derived from a given type. |
XSAnnotation |
getAnnotation()
Optional. |
XSTypeDefinition |
getBaseType()
{base type definition} Either a simple type definition or a complex type definition. |
short |
getDefinedFacets()
{Facets} Get all facets defined on this type. |
short |
getFinal()
{final} For complex type definition it is a subset of {extension, restriction}. |
short |
getFixedFacets()
{Facets} Get all facets defined and fixed on this type. |
boolean |
getIsAnonymous()
A boolean that specifies if the type definition is anonymous. |
boolean |
getIsBounded()
Fundamental Facet: [Definition:] A datatype is bounded if its value space has either an inclusive upper bound or an exclusive upper bound and either an inclusive lower bound and an exclusive lower bound. |
boolean |
getIsDefinedFacet(short facetName)
{Facets} Check whether a facet is defined on this type. |
boolean |
getIsFinal(short derivation)
{final} For complex type definition it is a subset of {extension, restriction}. |
boolean |
getIsFinite()
Fundamental Facet: [Definition:] Every value space has associated with it the concept of cardinality. |
boolean |
getIsFixedFacet(short facetName)
{Facets} Check whether a facet is defined and fixed on this type. |
boolean |
getIsNumeric()
Fundamental Facet: [Definition:] A datatype is said to be numeric if its values are conceptually quantities (in some mathematical number system). |
XSSimpleTypeDefinition |
getItemType()
If variety is list the item type definition (an atomic or
union simple type definition) is available, otherwise
null. |
StringList |
getLexicalEnumerations()
Returns a list of enumeration values, as String's. |
java.lang.String |
getLexicalFacetValue(short facetName)
Convenience method. |
StringList |
getLexicalPatterns()
Returns a list of pattern values, as String's. |
XSObjectList |
getMemberTypes()
If variety is union the list of member type definitions (a
non-empty sequence of simple type definitions) is available,
otherwise null. |
java.lang.String |
getName()
The name of this XSObject depending on the
XSObject type. |
java.lang.String |
getNamespace()
The namespace URI of this node, or null if it is
unspecified. |
short |
getOrdered()
Fundamental Facet: [Definition:] An order relation on a value space is a mathematical relation that imposes a total order or a partial order on the members of the value space. |
short |
getPrimitiveKind()
return an ID representing the built-in primitive base type. |
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. |
java.lang.String |
getStringValue(java.lang.Object value)
|
short |
getType()
Get the type of the object, i.e ELEMENT_DECLARATION. |
short |
getTypeCategory()
Return whether this type definition is a simple type or complex type. |
short |
getVariety()
{variety} One of {atomic, list, union}. |
short |
getWhitespace()
Return the whitespace corresponding to this datatype. |
boolean |
isEqual(java.lang.Object value1,
java.lang.Object value2)
Check whether two actual values are equal. |
boolean |
isIDType()
Check whether this type is or is derived from ID. |
static java.lang.String |
normalize(java.lang.String content,
short ws)
|
void |
reset()
|
protected XSSimpleTypeDecl |
setListValues(java.lang.String name,
java.lang.String uri,
short finalSet,
XSSimpleTypeDecl itemType)
|
protected XSSimpleTypeDecl |
setRestrictionValues(XSSimpleTypeDecl base,
java.lang.String name,
java.lang.String uri,
short finalSet)
|
protected XSSimpleTypeDecl |
setUnionValues(java.lang.String name,
java.lang.String uri,
short finalSet,
XSSimpleTypeDecl[] memberTypes)
|
java.lang.Object |
validate(java.lang.String 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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XSSimpleTypeDecl()
protected XSSimpleTypeDecl(XSSimpleTypeDecl base,
java.lang.String name,
short validateDV,
short ordered,
boolean bounded,
boolean finite,
boolean numeric,
boolean isImmutable)
protected XSSimpleTypeDecl(XSSimpleTypeDecl base,
java.lang.String name,
java.lang.String uri,
short finalSet,
boolean isImmutable)
protected XSSimpleTypeDecl(java.lang.String name,
java.lang.String uri,
short finalSet,
XSSimpleTypeDecl itemType,
boolean isImmutable)
protected XSSimpleTypeDecl(java.lang.String name,
java.lang.String uri,
short finalSet,
XSSimpleTypeDecl[] memberTypes)
| Method Detail |
protected XSSimpleTypeDecl setRestrictionValues(XSSimpleTypeDecl base,
java.lang.String name,
java.lang.String uri,
short finalSet)
protected XSSimpleTypeDecl setListValues(java.lang.String name,
java.lang.String uri,
short finalSet,
XSSimpleTypeDecl itemType)
protected XSSimpleTypeDecl setUnionValues(java.lang.String name,
java.lang.String uri,
short finalSet,
XSSimpleTypeDecl[] memberTypes)
public short getType()
XSObjectgetType in interface XSObjectpublic short getTypeCategory()
XSTypeDefinitiongetTypeCategory in interface XSTypeDefinitionpublic java.lang.String getName()
XSObjectname of this XSObject depending on the
XSObject type.getName in interface XSObjectpublic java.lang.String getNamespace()
XSObjectnull if it is
unspecified. defines how a namespace URI is attached to schema
components.getNamespace in interface XSObjectpublic short getFinal()
XSTypeDefinitiongetFinal in interface XSTypeDefinitionorg.apache.xerces.impl.xs.psvi.XSTypeDefinitionpublic boolean getIsFinal(short derivation)
XSTypeDefinitiongetIsFinal in interface XSTypeDefinitionorg.apache.xerces.impl.xs.psvi.XSTypeDefinitionderivation - Extension, restriction, list, union constants
(defined in XSConstants).public XSTypeDefinition getBaseType()
XSTypeDefinitiongetBaseType in interface XSTypeDefinitionpublic boolean getIsAnonymous()
XSTypeDefinitiongetIsAnonymous in interface XSTypeDefinitionpublic short getVariety()
XSSimpleTypeDefinitionXSConstants are UNION,
LIST, ATOMIC.getVariety in interface XSSimpleTypeDefinitionpublic boolean isIDType()
XSSimpleTypeisIDType in interface XSSimpleTypeorg.apache.xerces.impl.dv.XSSimpleType
public short getWhitespace()
throws DatatypeException
XSSimpleTypegetWhitespace in interface XSSimpleTypeorg.apache.xerces.impl.dv.XSSimpleTypeDatatypeException - union datatypes don't have whitespace facet associated with thempublic short getPrimitiveKind()
XSSimpleTypegetPrimitiveKind in interface XSSimpleTypeorg.apache.xerces.impl.dv.XSSimpleTypepublic XSSimpleTypeDefinition getPrimitiveType()
XSSimpleTypeDefinitionatomic the primitive type definition (a
built-in primitive datatype definition or the simple ur-type
definition) is available, otherwise null.getPrimitiveType in interface XSSimpleTypeDefinitionpublic XSSimpleTypeDefinition getItemType()
XSSimpleTypeDefinitionlist the item type definition (an atomic or
union simple type definition) is available, otherwise
null.getItemType in interface XSSimpleTypeDefinitionpublic XSObjectList getMemberTypes()
XSSimpleTypeDefinitionunion the list of member type definitions (a
non-empty sequence of simple type definitions) is available,
otherwise null.getMemberTypes in interface XSSimpleTypeDefinition
public void applyFacets(XSFacets facets,
short presentFacet,
short fixedFacet,
ValidationContext context)
throws InvalidDatatypeFacetException
applyFacets in interface XSSimpleTypeorg.apache.xerces.impl.dv.XSSimpleTypefacets - the value of all the facetspresentFacets - bit combination value of the costraining facet
constants which are present.fixedFacets - bit combination value of the costraining facet
constants which are fixed.ValidationContext - the validation contextInvalidDatatypeFacetException - exception for invalid facet values.
public java.lang.Object validate(java.lang.String content,
ValidationContext context,
ValidatedInfo validatedInfo)
throws InvalidDatatypeValueException
validate in interface XSSimpleTypeorg.apache.xerces.impl.dv.XSSimpleTypecontent - the string value that needs to be validatedcontext - the validation contextvalidatedInfo - used to store validation result
public void validate(ValidationContext context,
ValidatedInfo validatedInfo)
throws InvalidDatatypeValueException
validate in interface XSSimpleTypevalue - the actual value that needs to be validatedcontext - the validation contextvalidatedInfo - used to provide the actual value and member types
public boolean isEqual(java.lang.Object value1,
java.lang.Object value2)
XSSimpleTypeisEqual in interface XSSimpleTypeorg.apache.xerces.impl.dv.XSSimpleTypevalue1 - the first value
public static java.lang.String normalize(java.lang.String content,
short ws)
public java.lang.String getStringValue(java.lang.Object value)
public short getOrdered()
XSSimpleTypeDefinitiongetOrdered in interface XSSimpleTypeDefinitionpublic boolean getIsBounded()
XSSimpleTypeDefinitiongetIsBounded in interface XSSimpleTypeDefinitionpublic boolean getIsFinite()
XSSimpleTypeDefinitiongetIsFinite in interface XSSimpleTypeDefinitionpublic boolean getIsNumeric()
XSSimpleTypeDefinitiongetIsNumeric in interface XSSimpleTypeDefinitionpublic boolean getIsDefinedFacet(short facetName)
XSSimpleTypeDefinitiongetIsDefinedFacet in interface XSSimpleTypeDefinitionorg.apache.xerces.impl.xs.psvi.XSSimpleTypeDefinitionfacetName - The name of the facet.public short getDefinedFacets()
XSSimpleTypeDefinitiongetDefinedFacets in interface XSSimpleTypeDefinitionorg.apache.xerces.impl.xs.psvi.XSSimpleTypeDefinitionpublic boolean getIsFixedFacet(short facetName)
XSSimpleTypeDefinitiongetIsFixedFacet in interface XSSimpleTypeDefinitionorg.apache.xerces.impl.xs.psvi.XSSimpleTypeDefinitionfacetName - The name of the facet.public short getFixedFacets()
XSSimpleTypeDefinitiongetFixedFacets in interface XSSimpleTypeDefinitionorg.apache.xerces.impl.xs.psvi.XSSimpleTypeDefinitionpublic java.lang.String getLexicalFacetValue(short facetName)
XSSimpleTypeDefinitionenumeration and pattern facets.getLexicalFacetValue in interface XSSimpleTypeDefinitionorg.apache.xerces.impl.xs.psvi.XSSimpleTypeDefinitionfacetName - The name of the facet, i.e.
FACET_LENGTH, FACET_TOTALDIGITS (see
XSConstants).To retrieve value for pattern or
enumeration, see enumeration and pattern.facetName for
this simple type definition or null.public StringList getLexicalEnumerations()
XSSimpleTypeDefinitionString's.getLexicalEnumerations in interface XSSimpleTypeDefinitionpublic StringList getLexicalPatterns()
XSSimpleTypeDefinitionString's.getLexicalPatterns in interface XSSimpleTypeDefinitionpublic XSAnnotation getAnnotation()
XSSimpleTypeDefinitiongetAnnotation in interface XSSimpleTypeDefinitionpublic boolean derivedFrom(XSTypeDefinition ancestor)
XSTypeDeclderivedFrom in interface XSTypeDecl
public boolean derivedFrom(java.lang.String ancestorNS,
java.lang.String ancestorName)
XSTypeDeclderivedFrom in interface XSTypeDeclpublic void reset()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||