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, toLong
getMessage, getWhitespaceAction, isConstraining, isFacetName, isFixed, isNewlyIntroduced, makeFacet, serializeFacet, setFixed, setMessage, testListValue
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 listpublic FunctionItem getFacetAsFunctionItem()
Facet
getFacetAsFunctionItem
in class LengthRangeFacet
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.