Class IntValueParser

  • All Implemented Interfaces:
    XMLValueParser<Integer>

    public class IntValueParser
    extends Object
    implements XMLValueParser<Integer>
    Value parser for integer values. It validates whether the input string is an integer, and it can validate whether the value is within a specified range.
    • Constructor Detail

      • IntValueParser

        public IntValueParser()
        Constructs a new parser without range validation.
      • IntValueParser

        public IntValueParser​(Integer minVal,
                              Integer maxVal)
        Constructs a new parser with range validation.
        Parameters:
        minVal - the minimum value or null
        maxVal - the maximum value or null