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, testListValue
public String getValue()
Facet
public long toLong()
Facet
public 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 Facet
value
- the value to be testedpublic abstract boolean testLength(int actualLength)
testLength
in class Facet
actualLength
- the actual length of the listpublic FunctionItem getFacetAsFunctionItem()
Facet
getFacetAsFunctionItem
in class Facet
Copyright (c) 2004-2013 Saxonica Limited. All rights reserved.