public class DateExpression extends AbstractExpression
VariableDateExpression
instead.Constructor and Description |
---|
DateExpression()
Default Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
configureCalendar(Calendar calendar)
Configures the given Calendar instance by applying all defined fields to it.
|
protected Calendar |
getCalendar()
Create a new calendar instance.
|
Integer |
getDay()
Returns the day property.
|
Integer |
getDayOfMonth()
Returns the day of the month property.
|
Integer |
getDayOfWeek()
Returns the day of the week property.
|
Integer |
getDayOfWeekInMonth()
Returns the day of the week in the month property.
|
Integer |
getDayOfYear()
Returns the day of the year property.
|
Long |
getEpochTime()
Returns the time in seconds since 01-Jan-1970.
|
Integer |
getHour()
Returns the hour of the day property.
|
Integer |
getMilliSecond()
Returns the milli-second property.
|
Integer |
getMinute()
Returns the minute property.
|
Integer |
getMonth()
Returns the month property.
|
Integer |
getSecond()
Returns the second property.
|
Long |
getTime()
Returns the time in milli-seconds since 01-Jan-1970.
|
TimeZone |
getTimeZone()
Returns the current time-zone.
|
Object |
getValue()
Return the current expression value.
|
Integer |
getWeekOfMonth() |
Integer |
getWeekOfYear()
Returns the week of the year property.
|
Integer |
getYear()
Returns the year property.
|
void |
setDay(Integer day)
Defines the day property.
|
void |
setDayOfMonth(Integer dayOfMonth)
Defines the day of the month property.
|
void |
setDayOfWeek(Integer dayOfWeek)
Defines the day of the week property.
|
void |
setDayOfWeekInMonth(Integer dayOfWeekInMonth)
Defines the day of the week in the month property.
|
void |
setDayOfYear(Integer dayOfYear)
Defines the day of the year property.
|
void |
setEpochTime(Long epochTime)
Defines the time in seconds since 01-Jan-1970.
|
void |
setHour(Integer hour)
Defines the hour property.
|
void |
setMilliSecond(Integer milliSecond)
Defines the year property.
|
void |
setMinute(Integer minute)
Defines the minute property.
|
void |
setMonth(Integer month)
Defines the month property.
|
void |
setSecond(Integer second)
Defines the second property.
|
void |
setTime(Long time)
Defines the time in milli-seconds since 01-Jan-1970.
|
void |
setTimeZone(TimeZone timeZone)
Defines the timezone.
|
void |
setWeekOfMonth(Integer weekOfMonth) |
void |
setWeekOfYear(Integer weekOfYear)
Defines the week of the year property.
|
void |
setYear(Integer year)
Defines the year property.
|
clone, getDataRow, getDependencyLevel, getInstance, getName, getReportConfiguration, getResourceBundleFactory, getRuntime, isActive, isDeepTraversing, isPreserve, setActive, setDependencyLevel, setName, setPreserve, setRuntime
public TimeZone getTimeZone()
public void setTimeZone(TimeZone timeZone)
timeZone
- the time-zone.public Integer getMonth()
public void setMonth(Integer month)
month
- the month property.public Integer getDay()
public void setDay(Integer day)
day
- the day of the month property.public Integer getYear()
public void setYear(Integer year)
year
- the year property.public Integer getHour()
public void setHour(Integer hour)
hour
- the hour property.public Integer getMinute()
public void setMinute(Integer minute)
minute
- the minute property.public Integer getSecond()
public void setSecond(Integer second)
second
- the second property.public Integer getMilliSecond()
public void setMilliSecond(Integer milliSecond)
milliSecond
- the milli-seconds property.public Long getTime()
public void setTime(Long time)
time
- the time in milli-seconds since 01-Jan-1970.public Long getEpochTime()
public void setEpochTime(Long epochTime)
epochTime
- the time in seconds since 01-Jan-1970.public Integer getDayOfWeek()
public void setDayOfWeek(Integer dayOfWeek)
dayOfWeek
- the day-of-the-week property.public Integer getDayOfYear()
public void setDayOfYear(Integer dayOfYear)
dayOfYear
- the day-of-the-year property.public Integer getDayOfMonth()
public void setDayOfMonth(Integer dayOfMonth)
dayOfMonth
- the day-of-the-month property.public Integer getDayOfWeekInMonth()
public void setDayOfWeekInMonth(Integer dayOfWeekInMonth)
dayOfWeekInMonth
- the day of the week in the month property.public Integer getWeekOfYear()
public void setWeekOfYear(Integer weekOfYear)
weekOfYear
- the week of the year property.public Integer getWeekOfMonth()
public void setWeekOfMonth(Integer weekOfMonth)
public Object getValue()
The value depends (obviously) on the expression implementation.
protected void configureCalendar(Calendar calendar)
calendar
- the week of the year property.protected Calendar getCalendar()
Copyright © 2002–2017 Pentaho Corporation. All rights reserved.