public abstract class LengthRangeFacet extends Facet
| Constructor and Description |
|---|
LengthRangeFacet() |
| Modifier and Type | Method and Description |
|---|---|
FunctionItem |
getFacetAsFunctionItem()
Get a function item that represents this Facet schema component.
|
String |
getValue()
Returns the lexical representation of the value of this facet
|
void |
setNumericValue(int value)
Set the value as an integer
|
void |
setValue(String value)
Set the value of this facet as a string.
|
boolean |
testAtomicValue(AtomicValue value)
Test whether an atomic value conforms to this facet
|
abstract boolean |
testLength(int actualLength)
Test whether a supplied length conforms to this required length.
|
long |
toLong()
Returns the numeric value of this facet, for facets where this is appropriate
|
checkFacetRestriction, getMessage, getName, getWhitespaceAction, isConstraining, isFacetName, isFixed, isNewlyIntroduced, makeFacet, serializeFacet, setFixed, setMessage, testListValuepublic String getValue()
Facetpublic long toLong()
Facetpublic void setNumericValue(int value)
value - the value of the length facet as an integerpublic void setValue(String value) throws SchemaException
value - the value as a string, which must parse as an integerSchemaException - if the value is invalid.public boolean testAtomicValue(AtomicValue value)
testAtomicValue in class Facetvalue - the value to be testedpublic abstract boolean testLength(int actualLength)
testLength in class FacetactualLength - the actual length of the listpublic FunctionItem getFacetAsFunctionItem()
FacetgetFacetAsFunctionItem in class FacetCopyright (c) 2004-2013 Saxonica Limited. All rights reserved.