|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.saxonica.schema.Facet com.saxonica.schema.LengthRangeFacet
public abstract class LengthRangeFacet
Abstract class for the three facets length, minLength, and maxLength. Subclasses represent the minLength and maxLength facets.
Constructor Summary | |
---|---|
LengthRangeFacet()
|
Method Summary | |
---|---|
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 |
Methods inherited from class com.saxonica.schema.Facet |
---|
checkFacetRestriction, getMessage, getName, getWhitespaceAction, isConstraining, isFacetName, isFixed, isNewlyIntroduced, makeFacet, serializeFacet, setFixed, setMessage, testListValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LengthRangeFacet()
Method Detail |
---|
public String getValue()
Facet
getValue
in class Facet
public long toLong()
Facet
toLong
in class 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 integer
SchemaException
- if the value is invalid.public boolean testAtomicValue(AtomicValue value)
testAtomicValue
in class Facet
value
- the value to be tested
public abstract boolean testLength(int actualLength)
testLength
in class Facet
actualLength
- the actual length of the list
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |