Package com.iplanet.ums.validation
Class AlphaValidator
- java.lang.Object
-
- com.iplanet.ums.validation.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
-
-
Field Summary
-
Fields inherited from interface com.iplanet.ums.validation.IValidator
BAD_RULE, BAD_VALUE, PKG, PREFIX
-
-
Constructor Summary
Constructors Constructor Description AlphaValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanvalidate(String value)Determines whether the specified string is a valid alphabetic stringbooleanvalidate(String value, String rule)Determines whether the specified string is a valid alphabetic string
-
-
-
Method Detail
-
validate
public boolean validate(String value, String rule)
Determines whether the specified string is a valid alphabetic string- Specified by:
validatein interfaceIValidator- Parameters:
value- string value to validaterule- 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
-
-