public static class BasicValueValidators.RustCpValidator extends java.lang.Object implements ValueValidator
Constructor and Description |
---|
RustCpValidator() |
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 . |
public void validate(java.lang.Object value) throws java.lang.IllegalArgumentException
ValueValidator
ValueValidator
. Any arbitrary operation can be
performed to ensure that the value is valid.validate
in interface ValueValidator
value
- The object to validatejava.lang.IllegalArgumentException
- if the value is invalidpublic java.lang.String getPossibleValues()
ValueValidator
ValueValidator
acceptsgetPossibleValues
in interface ValueValidator
ValueValidator
accepts