|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--net.sf.saxon.type.Facet
|
+--com.saxonica.schema.LengthFacet
Represents the length facet. Sublclasses represent the minLength and maxLength facets.
| Field Summary |
| Fields inherited from class net.sf.saxon.type.Facet |
COLLAPSE, ENUMERATION, FRACTIONDIGITS, LENGTH, MAX_EXCLUSIVE, MAX_INCLUSIVE, MAX_LENGTH, MIN_EXCLUSIVE, MIN_INCLUSIVE, MIN_LENGTH, PATTERN, PRESERVE, REPLACE, TOTALDIGITS, value, WHITESPACE |
| Constructor Summary | |
LengthFacet()
|
|
| Method Summary | |
void |
checkFacetRestriction(SimpleType base)
Check that this facet is legal when used on a type derived by restriction |
java.lang.String |
getName()
Returns the name of this Facet |
java.lang.String |
getValue()
Returns the character (String) representation of this facet |
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 |
boolean |
testLength(int actualLength)
Test whether a supplied length conforms to this required length. |
long |
toLong()
Returns the numeric value of this facet |
| Methods inherited from class net.sf.saxon.type.Facet |
appliesToWholeList, getWhitespaceAction, isFixed, setFixed |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LengthFacet()
| Method Detail |
public java.lang.String getName()
Facet
getName in class Facetpublic java.lang.String getValue()
Facet
getValue in class Facetpublic long toLong()
Facet
toLong in class Facet
public void setValue(java.lang.String value)
throws SchemaException
value - the value as a string, which must parse as an integer
SchemaException - if the value is invalid.
public void checkFacetRestriction(SimpleType base)
throws SchemaException
checkFacetRestriction in class Facetbase - the type from which the restricted type is derived
SchemaException - if the facet is not legalpublic boolean testAtomicValue(AtomicValue value)
testAtomicValue in class Facetvalue - the value to be tested
public boolean testLength(int actualLength)
testLength in class Facet
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||