public class EnumerationValidator extends AbstractValidator
Constructor and Description |
---|
EnumerationValidator(Collection<String> values)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Returns a human readable representation of this Validator.
|
String |
validate(Object value)
Checks whether the given value is valid.
|
getObjectAs, isAlwaysTrue
public EnumerationValidator(Collection<String> values)
values
- the allowed valuespublic String validate(Object value)
Validator
value
- the value to checkValidator.validate(java.lang.Object)
public String getDescription()
Validator
Validator.getDescription()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a