public class MaxExclusiveFacet extends ValueRangeFacet
Constructor and Description |
---|
MaxExclusiveFacet() |
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
|
java.lang.String |
getName()
Returns the name of this Facet
|
protected boolean |
testComparisonOK(int comparisonResult)
Test whether the comparison with the min or max value is a valid result
|
convertToTargetType, getFacetAsFunctionItem, getValue, setRequiredValue, setValue, testAtomicValue
getMessage, getWhitespaceAction, isConstraining, isFacetName, isFixed, isNewlyIntroduced, makeFacet, serializeFacet, setFixed, setMessage, testLength, testListValue, toLong
public java.lang.String getName()
Facet
protected boolean testComparisonOK(int comparisonResult)
ValueRangeFacet
testComparisonOK
in class ValueRangeFacet
comparisonResult
- the result of comparing the actual value with the specified min or max value,
as defined using the compareTo() methodpublic void checkFacetRestriction(UserSimpleType type, SimpleType base, SchemaCompiler compiler) throws SchemaException, ValidationException
ValueRangeFacet
checkFacetRestriction
in class ValueRangeFacet
type
- the type on which the facet is definedbase
- the type from which the restricted type is derivedcompiler
- the schema compilerSchemaException
- if the facet is not legalValidationException
- if a value is found that does not conform to the facetCopyright (c) 2004-2018 Saxonica Limited. All rights reserved.