Interface XSFacet
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
getActualFacetValue()
If this facet is minInclusive, maxInclusive, minExclusive, or maxExclusive, then return the actual value of the facet.XSAnnotation
getAnnotation()
An annotation if it exists, otherwisenull
.XSObjectList
getAnnotations()
A sequence of [annotations] or an emptyXSObjectList
.short
getFacetKind()
The name of the facet, e.g.boolean
getFixed()
[Facets]: check whether a facet is fixed.int
getIntFacetValue()
If this facet is length, minLength, maxLength, totalDigits, or fractionDigits, and if the value can fit in "int", then return the value of the facet as an int.String
getLexicalFacetValue()
A value of this facet.-
Methods inherited from interface org.smooks.engine.delivery.sax.ng.org.apache.xerces.xs.XSObject
getName, getNamespace, getNamespaceItem, getType
-
-
-
-
Method Detail
-
getFacetKind
short getFacetKind()
The name of the facet, e.g.FACET_LENGTH, FACET_TOTALDIGITS
(seeXSSimpleTypeDefinition
).
-
getLexicalFacetValue
String getLexicalFacetValue()
A value of this facet.
-
getIntFacetValue
int getIntFacetValue()
If this facet is length, minLength, maxLength, totalDigits, or fractionDigits, and if the value can fit in "int", then return the value of the facet as an int. If the value can't fit, return -1. Use getActualFacetValue() to get the BigInteger representation. For all other facets, return 0.
-
getActualFacetValue
Object getActualFacetValue()
If this facet is minInclusive, maxInclusive, minExclusive, or maxExclusive, then return the actual value of the facet. If this facet is length, minLength, maxLength, totalDigits, or fractionDigits, then return a BigInteger representation of the value. If this facet is whiteSpace, then return the String representation of the facet.
-
getFixed
boolean getFixed()
[Facets]: check whether a facet is fixed.
-
getAnnotation
XSAnnotation getAnnotation()
An annotation if it exists, otherwisenull
. If not null then the first [annotation] from the sequence of annotations.
-
getAnnotations
XSObjectList getAnnotations()
A sequence of [annotations] or an emptyXSObjectList
.
-
-