|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.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 Facetpublic long toLong()
Facet
toLong in class Facetpublic void setNumericValue(int value)
value - the value of the length facet as an integer
public 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 Facetvalue - the value to be tested
public abstract boolean testLength(int actualLength)
testLength in class FacetactualLength - the actual length of the list
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||