public interface ParameterValidator extends Storable, Cloneable
Modifier and Type | Method and Description |
---|---|
boolean |
checkValue(Object value)
Returns
true if the value is valid and false
otherwise. |
ParameterValidator |
clone()
This method returns a deep copy of the current instance.
|
String |
getErrorMessage()
Returns the error message if
checkValue(Object) returned false. |
boolean checkValue(Object value)
true
if the value is valid and false
otherwise.value
- the Object
to be checkedvalue
is validString getErrorMessage()
checkValue(Object)
returned false.ParameterValidator clone() throws CloneNotSupportedException
CloneNotSupportedException
- if the ParameterValidator
could not be clonedCloneable