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
|
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, toLonggetMessage, getWhitespaceAction, isConstraining, isFacetName, isFixed, isNewlyIntroduced, makeFacet, serializeFacet, setFixed, setMessage, testListValuepublic void checkFacetRestriction(UserSimpleType type, SimpleType base, SchemaCompiler compiler) throws SchemaException, ValidationException
checkFacetRestriction in class Facetbase - 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 LengthRangeFacetactualLength - the actual length of the listCopyright (c) 2004-2013 Saxonica Limited. All rights reserved.