|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JqlDateSupport
Interface that helps with date parsing and validation in JQL.
Method Summary | |
---|---|
Date |
convertToDate(Long dateLong)
Converts the long to a date. |
Date |
convertToDate(String dateString)
Try to parse the passed date string using the formats that JQL understands. |
Date |
convertToDate(String dateString,
TimeZone timeZone)
Try to parse the passed date string using the formats that JQL understands. |
DateRange |
convertToDateRange(Long dateLong)
Converts the long to a date range where both values equal each other. |
DateRange |
convertToDateRangeWithImpliedPrecision(String dateString)
Try to parse the passed in date string using the formats that JQL understands. |
String |
getDateString(Date date)
Return a string representation of the passed date. |
String |
getDateString(Date date,
TimeZone timeZone)
Return a string representation of the passed date. |
String |
getIndexedValue(Date date)
Converts a date into the index-friendly format. |
boolean |
isDuration(String dateString)
Returns a boolean value indicating whether the passed date string representation has duration format, e.g., 4d 1h, -1w. |
boolean |
validate(String dateString)
Check to see if the passed string is a valid date according to JQL. |
Method Detail |
---|
Date convertToDate(String dateString)
dateString
- the string to parse. Cannot be null.
validate(String)
right?
IllegalArgumentException
- if the passed dateString is null.Date convertToDate(String dateString, TimeZone timeZone)
dateString
- the string to parse. Cannot be null.timeZone
- time zone to use when parsing.
validate(String)
right?
IllegalArgumentException
- if the passed dateString is null.DateRange convertToDateRangeWithImpliedPrecision(String dateString)
dateString
- the string to parse. Cannot be null.
validate(String)
right?
IllegalArgumentException
- if the passed dateString is null.Date convertToDate(Long dateLong)
dateLong
- the long to give back a date for . Cannot be null.
IllegalArgumentException
- if the passed in Long is nullDateRange convertToDateRange(Long dateLong)
dateLong
- the long to give back a date for . Cannot be null.
IllegalArgumentException
- if the passed in Long is nullString getIndexedValue(Date date)
date
- the date
boolean validate(String dateString)
dateString
- the string to check cannot be null.
IllegalArgumentException
- if the passed dateString is blank or nullString getDateString(Date date)
date
- the date to convert. Cannot be null.
IllegalArgumentException
- if the passed date is null.String getDateString(Date date, TimeZone timeZone)
date
- the date to convert. Cannot be null.timeZone
- time zone to use. Cannot be null.
IllegalArgumentException
- if the passed date is null.boolean isDuration(String dateString)
dateString
- the string to parse.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |