com.atlassian.jira.issue.fields
Interface TextFieldCharacterLengthValidator

All Known Implementing Classes:
DefaultTextFieldCharacterLengthValidator

public interface TextFieldCharacterLengthValidator

Checks, whether a string's length exceeds a specific limit.

Since:
5.0.3

Method Summary
 long getMaximumNumberOfCharacters()
          Returns the maximum number of characters to be entered for a single field.
 boolean isTextTooLong(String text)
          Validate the length of the given string against the maximum number.
 

Method Detail

isTextTooLong

boolean isTextTooLong(String text)
Validate the length of the given string against the maximum number.

Parameters:
text - the text to be checked; can be null
Returns:
whether the given text is longer than the maximum number of characters; null is always valid

getMaximumNumberOfCharacters

long getMaximumNumberOfCharacters()
Returns the maximum number of characters to be entered for a single field.

Returns:
the maximum number of characters to be entered for a single field.


Copyright © 2002-2013 Atlassian. All Rights Reserved.