Class BooleanValidator

    • Constructor Detail

      • BooleanValidator

        public BooleanValidator()
    • Method Detail

      • validate

        public boolean validate​(String value,
                                String rule)
        Determines whether the specified string is a valid boolean value
        Specified by:
        validate in interface IValidator
        Parameters:
        value - string value to validate
        rule - not used by this method
        Returns:
        true if value is an boolean value
      • validate

        public boolean validate​(String value)
        Determines whether the specified string is a valid boolean value
        Parameters:
        value - string to test
        Returns:
        true if value is an boolean value