|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ParameterValidator
Interface for a parameter validator, i.e. a class that can validate some possible parameter value.
Method Summary | |
---|---|
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() returned false. |
Methods inherited from interface de.jstacs.Storable |
---|
toXML |
Method Detail |
---|
boolean checkValue(Object value)
true
if the value is valid and false
otherwise
value
- the value to check
String getErrorMessage()
checkValue()
returned false.
ParameterValidator clone() throws CloneNotSupportedException
CloneNotSupportedException
- if the ParameterValidator could not be clonedCloneable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |