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(java.lang.String durationString, boolean allowNegatives)
          Check to see if the passed string is a valid duration according to JQL.
 
Methods inherited from interface com.atlassian.jira.jql.util.IndexValueConverter
convertToIndexValue
 

Method Detail

validate

boolean validate(java.lang.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:
java.lang.IllegalArgumentException - if the passed durationString is blank or null


Copyright © 2002-2010 Atlassian. All Rights Reserved.