public class MaxLengthFacet extends LengthRangeFacet
Constructor and Description |
---|
MaxLengthFacet() |
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
|
boolean |
testLength(int actualLength)
Test whether a supplied length conforms to this required length
|
getFacetAsFunctionItem, getValue, setNumericValue, setValue, testAtomicValue, toLong
getMessage, getWhitespaceAction, isConstraining, isFacetName, isFixed, isNewlyIntroduced, makeFacet, serializeFacet, setFixed, setMessage, testListValue
public java.lang.String getName()
Facet
public void checkFacetRestriction(UserSimpleType type, SimpleType base, SchemaCompiler compiler) throws SchemaException, ValidationException
checkFacetRestriction
in class Facet
base
- the type from which the restricted type is derivedcompiler
- the schema compilertype
- 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 facetpublic boolean testLength(int actualLength)
testLength
in class LengthRangeFacet
actualLength
- the actual length of the listCopyright (c) 2004-2018 Saxonica Limited. All rights reserved.