public interface ValueValidator
BasicValueValidators| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getPossibleValues()
Returns a string describing possible values in human-readable form that
this
ValueValidator accepts |
void |
validate(java.lang.Object value)
This method checks if the given object is a valid value for this
specific
ValueValidator. |
void validate(java.lang.Object value)
throws java.lang.IllegalArgumentException
ValueValidator. Any arbitrary operation can be
performed to ensure that the value is valid.value - The object to validatejava.lang.IllegalArgumentException - if the value is invalidjava.lang.String getPossibleValues()
ValueValidator acceptsValueValidator accepts