Class AlphaValidator

  • All Implemented Interfaces:
    IValidator, Serializable

    public class AlphaValidator
    extends Object
    implements IValidator
    This class implements IValidator interface. Use the validate method of this class to validate the string for alphabetic string. Pass the string to be alphabeticvalidated and optional rule to validate function. The function returns true value if the string is valid alphabetic string
    See Also:
    Serialized Form
    • Constructor Detail

      • AlphaValidator

        public AlphaValidator()
    • Method Detail

      • validate

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

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