Package com.saxonica.ee.schema
Class MinExclusiveFacet
- java.lang.Object
-
- com.saxonica.ee.schema.Facet
-
- com.saxonica.ee.schema.ValueRangeFacet
-
- com.saxonica.ee.schema.MinExclusiveFacet
-
public class MinExclusiveFacet extends ValueRangeFacet
Implements the minExclusive facet on a simple type
-
-
Constructor Summary
Constructors Constructor Description MinExclusiveFacet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckFacetRestriction(UserSimpleType type, SimpleType base, SchemaCompiler compiler)Check that this facet is legal when used on a type derived by restrictionjava.lang.StringgetName()Returns the name of this Facetprotected booleantestComparisonOK(int comparisonResult)Test whether the comparison with the min or max value is a valid result-
Methods inherited from class com.saxonica.ee.schema.ValueRangeFacet
convertToTargetType, getFacetAsFunctionItem, getRequiredValue, getValue, setRequiredValue, setValue, testAtomicValue
-
Methods inherited from class com.saxonica.ee.schema.Facet
getConstraintName, getMessage, getWhitespaceAction, isConstraining, isFacetName, isFixed, isNewlyIntroduced, makeFacet, serializeFacet, setFixed, setMessage, testLength, testListValue, toLong
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from class:FacetReturns the name of this Facet
-
testComparisonOK
protected boolean testComparisonOK(int comparisonResult)
Description copied from class:ValueRangeFacetTest whether the comparison with the min or max value is a valid result- Specified by:
testComparisonOKin classValueRangeFacet- Parameters:
comparisonResult- the result of comparing the actual value with the specified min or max value, as defined using the compareTo() method- Returns:
- true if the comparison is OK, that is, if the value conforms to the facet
-
checkFacetRestriction
public void checkFacetRestriction(UserSimpleType type, SimpleType base, SchemaCompiler compiler) throws SchemaException, ValidationException
Description copied from class:ValueRangeFacetCheck that this facet is legal when used on a type derived by restriction- Overrides:
checkFacetRestrictionin classValueRangeFacet- Parameters:
type- the type on which the facet is definedbase- the type from which the restricted type is derivedcompiler- the schema compiler- Throws:
SchemaException- if the facet is not legalValidationException- if a value is found that does not conform to the facet
-
-