|
|||||||||
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.ValueRangeFacet
public abstract class ValueRangeFacet
Represents any of the facets minInclusive, maxInclusive, minExclusive, maxExclusive
Constructor Summary | |
---|---|
ValueRangeFacet()
|
Method Summary | |
---|---|
void |
checkFacetRestriction(UserSimpleType type,
SimpleType base,
SchemaCompiler compiler)
Check that this facet is legal when used on a type derived by restriction |
protected void |
convertToTargetType(SimpleType base,
Configuration config)
|
String |
getValue()
Returns the lexical representation of the value of this facet |
void |
setValue(String value)
|
boolean |
testAtomicValue(AtomicValue value)
Test whether an atomic value conforms to this facet |
protected abstract boolean |
testComparisonOK(int comparisonResult)
Test whether the comparison with the min or max value is a valid result |
Methods inherited from class com.saxonica.schema.Facet |
---|
getMessage, getName, getWhitespaceAction, isConstraining, isFacetName, isFixed, isNewlyIntroduced, makeFacet, serializeFacet, setFixed, setMessage, testLength, testListValue, toLong |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValueRangeFacet()
Method Detail |
---|
public String getValue()
Facet
getValue
in class Facet
public void setValue(String value) throws SchemaException
SchemaException
public void checkFacetRestriction(UserSimpleType type, SimpleType base, SchemaCompiler compiler) throws SchemaException, ValidationException
checkFacetRestriction
in class Facet
base
- the type from which the restricted type is derivedcompiler
- type
- the type on which the facet is defined
SchemaException
- if the facet is not legal
ValidationException
- if a value is found that does not conform to the facetprotected void convertToTargetType(SimpleType base, Configuration config) throws SchemaException
SchemaException
public boolean testAtomicValue(AtomicValue value)
testAtomicValue
in class Facet
value
- the value to be tested
protected abstract boolean testComparisonOK(int comparisonResult)
comparisonResult
- the result of comparing the actual value with the specified min or max value,
as defined using the compareTo() method
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |