com.atlassian.validation
Class EnumValidator
java.lang.Object
com.atlassian.validation.EnumValidator
- All Implemented Interfaces:
- Validator
public final class EnumValidator
- extends Object
- implements Validator
Validates that a field holds one of a fixed static set of values.
- Since:
- v4.4
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EnumValidator
public EnumValidator(ApplicationPropertyEnumerator enumerator)
validate
public Validator.Result validate(String value)
- Description copied from interface:
Validator
- Validate the given string to see if it passes and if not, why not.
- Specified by:
validate
in interface Validator
- Parameters:
value
- all validation input is a String.
- Returns:
- A result that contains access to the details of the validation outcome.
Copyright © 2002-2012 Atlassian. All Rights Reserved.