Package com.consol.citrus.functions.core
Class AbstractDateFunction
- java.lang.Object
-
- com.consol.citrus.functions.core.AbstractDateFunction
-
- All Implemented Interfaces:
com.consol.citrus.functions.Function
- Direct Known Subclasses:
ChangeDateFunction
,CurrentDateFunction
public abstract class AbstractDateFunction extends Object implements com.consol.citrus.functions.Function
Abstract date value handling function provides base date value manipulation helpers.- Since:
- 1.3.1
- Author:
- Christoph Deppisch
-
-
Constructor Summary
Constructors Constructor Description AbstractDateFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
applyDateOffset(Calendar calendar, String offsetString)
Adds/removes date value offset by parsing offset string for year/month/day/hour/minute/second offsets.protected int
getDateValueOffset(String offsetString, char c)
Parse offset string and add or subtract date offset value.protected SimpleDateFormat
getDefaultDateFormat()
Provides default date format.
-
-
-
Method Detail
-
applyDateOffset
protected void applyDateOffset(Calendar calendar, String offsetString)
Adds/removes date value offset by parsing offset string for year/month/day/hour/minute/second offsets.- Parameters:
calendar
-offsetString
-
-
getDateValueOffset
protected int getDateValueOffset(String offsetString, char c)
Parse offset string and add or subtract date offset value.- Parameters:
offsetString
-c
-- Returns:
-
getDefaultDateFormat
protected SimpleDateFormat getDefaultDateFormat()
Provides default date format.- Returns:
-
-