public class LengthFacet extends LengthRangeFacet
| Constructor and Description |
|---|
LengthFacet() |
| 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
|
FunctionItem |
getFacetAsFunctionItem()
Get a function item that represents this Facet schema component.
|
String |
getName()
Returns the name of this Facet
|
boolean |
testLength(int actualLength)
Test whether a supplied length conforms to this required length.
|
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 listpublic FunctionItem getFacetAsFunctionItem()
FacetgetFacetAsFunctionItem in class LengthRangeFacetCopyright (c) 2004-2013 Saxonica Limited. All rights reserved.