Package com.saxonica.ee.schema
Class TotalDigitsFacet
- java.lang.Object
-
- com.saxonica.ee.schema.Facet
-
- com.saxonica.ee.schema.DigitsFacet
-
- com.saxonica.ee.schema.TotalDigitsFacet
-
public class TotalDigitsFacet extends DigitsFacet
Eepresents the value of the totalDigits facet
-
-
Constructor Summary
Constructors Constructor Description TotalDigitsFacet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkFacetRestriction(UserSimpleType type, SimpleType base, SchemaCompiler compiler)
Check that this facet is legal when used on a type derived by restrictionjava.lang.String
getName()
Returns the name of this Facetvoid
setValue(java.lang.String value)
Set the value of this facet.-
Methods inherited from class com.saxonica.ee.schema.DigitsFacet
getFacetAsFunctionItem, getNumericValue, getValue, setNumericValue, testAtomicValue
-
Methods inherited from class com.saxonica.ee.schema.Facet
getConstraintName, getMessage, getWhitespaceAction, isConstraining, isFacetName, isFixed, isNewlyIntroduced, makeFacet, serializeFacet, setFixed, setMessage, testLength, testListValue, toLong
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from class:Facet
Returns the name of this Facet
-
setValue
public void setValue(java.lang.String value) throws SchemaException
Set the value of this facet. For internal use only.- Specified by:
setValue
in classDigitsFacet
- Parameters:
value
- the value of the facet. This must be a string that parses as an integer.- Throws:
SchemaException
- if the value is invalid (not an integer)
-
checkFacetRestriction
public void checkFacetRestriction(UserSimpleType type, SimpleType base, SchemaCompiler compiler) throws SchemaException, ValidationException
Description copied from class:DigitsFacet
Check that this facet is legal when used on a type derived by restriction- Overrides:
checkFacetRestriction
in classDigitsFacet
- Parameters:
type
- the type on which the facet is definedbase
- the type from which the restricted type is derivedcompiler
- the schema compiler- Throws:
SchemaException
- if the facet is not allowed for this simple type, or if the combination of facets is inconsistent with values defined on the base type.ValidationException
- if a value is found that does not conform to the facet
-
-