Top Description Methods
org.apache.xerces.xs

public Interface XSFacet

extends XSObject
Known Direct Implementers
org.apache.xerces.impl.dv.xs.XSSimpleTypeDecl.XSFacetImpl

Describes a constraining facet. Enumeration and pattern facets are exposed via XSMultiValueFacet interface.

Method Summary

Modifier and TypeMethod and Description
public Object
getActualFacetValue()

If this facet is minInclusive, maxInclusive, minExclusive, or maxExclusive, then return the actual value of the facet.

public XSAnnotation
getAnnotation()

An annotation if it exists, otherwise null.

public XSObjectList
getAnnotations()

A sequence of [annotations] or an empty XSObjectList.

public short
getFacetKind()

The name of the facet, e.g. FACET_LENGTH, FACET_TOTALDIGITS (see XSSimpleTypeDefinition).

public boolean
getFixed()

[Facets]: check whether a facet is fixed.

public 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.

public String
getLexicalFacetValue()

A value of this facet.

Inherited from org.apache.xerces.xs.XSObject:
getNamegetNamespacegetNamespaceItemgetType

Method Detail

getActualFacetValueback to summary
public 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.

getAnnotationback to summary
public XSAnnotation getAnnotation()

An annotation if it exists, otherwise null. If not null then the first [annotation] from the sequence of annotations.

getAnnotationsback to summary
public XSObjectList getAnnotations()

A sequence of [annotations] or an empty XSObjectList.

getFacetKindback to summary
public short getFacetKind()

The name of the facet, e.g. FACET_LENGTH, FACET_TOTALDIGITS (see XSSimpleTypeDefinition).

getFixedback to summary
public boolean getFixed()

[Facets]: check whether a facet is fixed.

getIntFacetValueback to summary
public 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.

getLexicalFacetValueback to summary
public String getLexicalFacetValue()

A value of this facet.