public abstract class AbstractValidation extends Object implements IValidation, ILogging
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractValidation() |
| Modifier and Type | Method and Description |
|---|---|
void |
addParam(String name,
String value)
This method adds a rule parameter to the rule definition.
|
protected Iterator<String> |
getParamNames()
Returns an iterator of the rule parameters that have been added to the
validation.
|
protected String |
getParamValue(String paramName)
Returns the parameter value for the specified parameter name,
or null if the parameter name does not exist.
|
abstract boolean |
isValid(String value) |
protected boolean |
matches(String regex,
String value)
This method gives the simplest Regular Expression interface most commonly
used by validations.
|
public abstract boolean isValid(String value)
isValid in interface IValidationpublic void addParam(String name, String value)
name - Stringvalue - Stringprotected Iterator<String> getParamNames()
protected String getParamValue(String paramName)
paramName - Stringprotected boolean matches(String regex, String value)
regex - Stringvalue - StringCopyright © 2012. All Rights Reserved.