public abstract class ValueRangeFacet extends Facet
| Constructor and Description |
|---|
ValueRangeFacet() |
| Modifier and Type | Method and Description |
|---|---|
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) |
Function |
getFacetAsFunctionItem()
Get a function item that represents this Facet schema component.
|
AtomicValue |
getRequiredValue() |
java.lang.String |
getValue()
Returns the lexical representation of the value of this facet
|
void |
setRequiredValue(AtomicValue value) |
void |
setValue(java.lang.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
|
getConstraintName, getMessage, getName, getWhitespaceAction, isConstraining, isFacetName, isFixed, isNewlyIntroduced, makeFacet, serializeFacet, setFixed, setMessage, testLength, testListValue, toLongpublic java.lang.String getValue()
Facetpublic void setValue(java.lang.String value)
throws SchemaException
SchemaExceptionpublic void setRequiredValue(AtomicValue value)
public AtomicValue getRequiredValue()
public void checkFacetRestriction(UserSimpleType type, SimpleType base, SchemaCompiler compiler) throws SchemaException, ValidationException
checkFacetRestriction in class Facetbase - the type from which the restricted type is derivedcompiler - type - the type on which the facet is definedSchemaException - if the facet is not legalValidationException - if a value is found that does not conform to the facetprotected void convertToTargetType(SimpleType base, Configuration config) throws SchemaException
SchemaExceptionpublic boolean testAtomicValue(AtomicValue value)
testAtomicValue in class Facetvalue - the value to be testedprotected 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() methodpublic Function getFacetAsFunctionItem()
FacetgetFacetAsFunctionItem in class FacetCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.