Interface Validator

All Known Implementing Classes:
BooleanValidator, CspSandboxBrowserDifferentiationValidator, CspSandboxContentDispositionValidator, CspSandboxContentTypeValidator, DuplicatedUsersPropertyValidator, EncryptorPropertyValidator, 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

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Post-validation state.
  • Method Summary

    Modifier and Type
    Method
    Description
    Validate the given string to see if it passes and if not, why not.
  • Method Details

    • 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.