com.atlassian.jira.jql.util
Interface JqlDurationSupport
- All Superinterfaces:
- IndexValueConverter
- All Known Implementing Classes:
- JqlDurationSupportImpl
public interface JqlDurationSupport
- extends IndexValueConverter
Interface for assisting in the parsing of duration values
- Since:
- v4.0
Method Summary |
boolean |
validate(String durationString,
boolean allowNegatives)
Check to see if the passed string is a valid duration according to JQL. |
validate
boolean validate(String durationString,
boolean allowNegatives)
- Check to see if the passed string is a valid duration according to JQL.
- Parameters:
durationString
- the string to check; cannot be null.allowNegatives
- use true if a negative duration is allowed to be specified
- Returns:
- true if the date is valid; false otherwise.
- Throws:
IllegalArgumentException
- if the passed durationString is blank or null
Copyright © 2002-2010 Atlassian. All Rights Reserved.