public static interface

IssueTextFieldCharacterLengthValidator.ValidationResult

com.atlassian.jira.issue.IssueTextFieldCharacterLengthValidator.ValidationResult

Class Overview

Result of the validation.

Summary

Public Methods
@Nonnull Set<String> getInvalidFieldIds()
Returns ids of fields that didn't pass the validation
long getMaximumNumberOfCharacters()
Return the character limit value that was used to validate the issue
boolean isValid()
Returns whether the validation was successful or not.

Public Methods

@Nonnull public Set<String> getInvalidFieldIds ()

Returns ids of fields that didn't pass the validation

Returns
  • set containing ids of fields that exceed the limit or an empty set if no field exceeds the limit

public long getMaximumNumberOfCharacters ()

Return the character limit value that was used to validate the issue

Returns
  • maximum number of characters allowed, 0 means unlimited

public boolean isValid ()

Returns whether the validation was successful or not. If this methods returns true then the getInvalidFieldIds() returns an empty set.

Returns
  • true