com.atlassian.validation
Interface Validator

All Known Implementing Classes:
BooleanValidator, EnumValidator, HexColourValidator, IntegerValidator, LinkSortFieldListValidator, NavigableFieldListValidator, NonValidator, ProjectKeyRegexValidator, RegexValidator, SimpleDateFormatValidator, StableSearchResultCountValidator, ViewIssueMaxCacheSizeValidator, ViewIssueMinimumHiddenCommentsValidator

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-2013 Atlassian. All Rights Reserved.