com.saxonica.schema
Class MaxScaleFacet
java.lang.Object
com.saxonica.schema.Facet
com.saxonica.schema.ScaleFacet
com.saxonica.schema.MaxScaleFacet
- All Implemented Interfaces:
- Serializable
public class MaxScaleFacet
- extends ScaleFacet
Represents the maxScale facet
- See Also:
- Serialized Form
Methods inherited from class com.saxonica.schema.Facet |
getMessage, getWhitespaceAction, isConstraining, isFacetName, isFixed, isNewlyIntroduced, makeFacet, serializeFacet, setFixed, setMessage, testLength, testListValue, toLong |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MaxScaleFacet
public MaxScaleFacet()
getName
public String getName()
- Description copied from class:
Facet
- Returns the name of this Facet
- Specified by:
getName
in class Facet
- Returns:
- 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:
checkFacetRestriction
in class ScaleFacet
- Parameters:
base
- the type from which the restricted type is derivedcompiler
- type
- the type on which the facet is defined
- Throws:
SchemaException
- if the facet is not legal
ValidationException
testAtomicValue
public boolean testAtomicValue(AtomicValue value)
- Description copied from class:
Facet
- Test whether an atomic value conforms to this facet
- Specified by:
testAtomicValue
in class Facet
- Parameters:
value
- the value to be tested
- Returns:
- true if the value conforms; false if it doesn't conform, or if the test fails
Copyright (c) 2004-2010 Saxonica Limited. All rights reserved.