Package com.atlassian.jira.issue
Interface IssueTextFieldCharacterLengthValidator.ValidationResult
- Enclosing interface:
- IssueTextFieldCharacterLengthValidator
public static interface IssueTextFieldCharacterLengthValidator.ValidationResult
Result of the validation.
-
Method Summary
Modifier and TypeMethodDescriptionReturns ids of fields that didn't pass the validationlongReturn the character limit value that was used to validate the issuebooleanisValid()Returns whether the validation was successful or not.
-
Method Details
-
isValid
boolean isValid()Returns whether the validation was successful or not. If this methods returnstruethen thegetInvalidFieldIds()returns an empty set.- Returns:
- true
-
getMaximumNumberOfCharacters
long getMaximumNumberOfCharacters()Return the character limit value that was used to validate the issue- Returns:
- maximum number of characters allowed, 0 means unlimited
-
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
-