public class MaxInclusiveFacet extends ValueRangeFacet
| Constructor and Description |
|---|
MaxInclusiveFacet() |
| 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
|
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, testAtomicValuegetMessage, getWhitespaceAction, isConstraining, isFacetName, isFixed, isNewlyIntroduced, makeFacet, serializeFacet, setFixed, setMessage, testLength, testListValue, toLongprotected boolean testComparisonOK(int comparisonResult)
ValueRangeFacettestComparisonOK in class ValueRangeFacetcomparisonResult - 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
ValueRangeFacetcheckFacetRestriction in class ValueRangeFacettype - 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-2013 Saxonica Limited. All rights reserved.