com.atlassian.validation
Interface Validator

All Known Implementing Classes:
BooleanValidator, EnumValidator, IntegerValidator, LinkSortFieldListValidator, NavigableFieldListValidator, NonValidator, ProjectKeyRegexValidator, RegexValidator, SimpleDateFormatValidator

public interface Validator

Small abstraction to enable valdiation of Strings.

Since:
v4.4

Nested Class Summary
static interface Validator.Result
          Post-validation state.
 
Method Summary
 Validator.Result validate(String value)
          Validate the given string to see if it passes and if not, why not.
 

Method Detail

validate

Validator.Result validate(String value)
Validate the given string to see if it passes and if not, why not.

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.