Package com.saxonica.ee.schema
Class MinLengthFacet
java.lang.Object
com.saxonica.ee.schema.Facet
com.saxonica.ee.schema.LengthRangeFacet
com.saxonica.ee.schema.MinLengthFacet
Represents the minLength facet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckFacetRestriction(UserSimpleType type, SimpleType base, SchemaCompiler compiler) Check that this facet is legal when used on a type derived by restrictiongetName()Returns the name of this FacetbooleantestLength(int actualLength) Test whether a supplied length conforms to this required length (used when testing the length of a list)Methods inherited from class com.saxonica.ee.schema.LengthRangeFacet
getFacetAsFunctionItem, getValue, setNumericValue, setValue, testAtomicValue, toLongMethods inherited from class com.saxonica.ee.schema.Facet
getConstraintName, getMessage, getWhitespaceAction, isConstraining, isFacetName, isFixed, isNewlyIntroduced, makeFacet, serializeFacet, setFixed, setMessage, testListValue
-
Constructor Details
-
MinLengthFacet
public MinLengthFacet()
-
-
Method Details
-
getName
Description copied from class:FacetReturns the name of this Facet -
checkFacetRestriction
public void checkFacetRestriction(UserSimpleType type, SimpleType base, SchemaCompiler compiler) throws SchemaException, ValidationException Check that this facet is legal when used on a type derived by restriction- Overrides:
checkFacetRestrictionin classFacet- 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
-
testLength
public boolean testLength(int actualLength) Test whether a supplied length conforms to this required length (used when testing the length of a list)- Specified by:
testLengthin classLengthRangeFacet- Parameters:
actualLength- the actual length of the list- Returns:
- true if the facet allows a list of this length, otherwise false
-