public abstract class LengthRangeFacet extends Facet
Constructor and Description |
---|
LengthRangeFacet() |
Modifier and Type | Method and Description |
---|---|
Function |
getFacetAsFunctionItem()
Get a function item that represents this Facet schema component.
|
java.lang.String |
getValue()
Returns the lexical representation of the value of this facet
|
void |
setNumericValue(int value)
Set the value as an integer
|
void |
setValue(java.lang.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 java.lang.String getValue()
Facet
public long toLong()
Facet
public void setNumericValue(int value)
value
- the value of the length facet as an integerpublic void setValue(java.lang.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 Function getFacetAsFunctionItem()
Facet
getFacetAsFunctionItem
in class Facet
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.