Class TotalDigitsFacet

    • Field Detail

      • precision

        public final int precision
        maximum number of total digits.
    • Constructor Detail

      • TotalDigitsFacet

        public TotalDigitsFacet​(String nsUri,
                                String typeName,
                                XSDatatypeImpl baseType,
                                int _precision,
                                boolean _isFixed)
                         throws org.relaxng.datatype.DatatypeException
        Throws:
        org.relaxng.datatype.DatatypeException
    • Method Detail

      • checkLexicalConstraint

        protected boolean checkLexicalConstraint​(String content)
      • diagnoseByFacet

        protected void diagnoseByFacet​(String content,
                                       org.relaxng.datatype.ValidationContext context)
                                throws org.relaxng.datatype.DatatypeException
        Specified by:
        diagnoseByFacet in class DataTypeWithFacet
        Throws:
        org.relaxng.datatype.DatatypeException
      • countPrecision

        protected static int countPrecision​(String literal)
        counts the number of digits
      • checkFormat

        protected final boolean checkFormat​(String literal,
                                            org.relaxng.datatype.ValidationContext context)
        Specified by:
        checkFormat in class XSDatatypeImpl
      • _createValue

        public final Object _createValue​(String literal,
                                         org.relaxng.datatype.ValidationContext context)
        Description copied from class: XSDatatypeImpl
        converts a whitespace-processed lexical value into the corresponding value object
        Specified by:
        _createValue in class XSDatatypeImpl