Package org.apache.maven.plugins.pdf
Class DateBean
- java.lang.Object
-
- org.apache.maven.plugins.pdf.DateBean
-
public class DateBean extends Object
Simple bean to allow date interpolation in the document descriptor, i.e.${year} = 2009 ${date} = 2009-05-17
- Author:
- ltheussl
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDate()
String
getDateTime()
String
getDay()
String
getHour()
String
getMillisecond()
String
getMinute()
String
getMonth()
String
getSecond()
String
getTime()
String
getYear()
void
setDate(Date date)
Set the Date of this bean.
-
-
-
Constructor Detail
-
DateBean
public DateBean()
Construct a new DateBean for the current Date.
-
DateBean
public DateBean(Date date)
Construct a new DateBean with a given Date.- Parameters:
date
- the date to set.
-
-
Method Detail
-
setDate
public void setDate(Date date)
Set the Date of this bean.- Parameters:
date
- the date to set.
-
getYear
public String getYear()
- Returns:
- the year in format "yyyy".
-
getMonth
public String getMonth()
- Returns:
- the month in format "MM".
-
getDay
public String getDay()
- Returns:
- the day in format "dd".
-
getHour
public String getHour()
- Returns:
- the hour in format "HH".
-
getMinute
public String getMinute()
- Returns:
- the minute in format "mm".
-
getSecond
public String getSecond()
- Returns:
- the second in format "ss".
-
getMillisecond
public String getMillisecond()
- Returns:
- the millisecond in format "SSS".
-
getDate
public String getDate()
- Returns:
- the date using the ISO 8601 format, i.e.
yyyy-MM-dd
.
-
getTime
public String getTime()
- Returns:
- the time using the ISO 8601 format and UTC time zone, i.e.
HH:mm:ss'Z'
.
-
getDateTime
public String getDateTime()
- Returns:
- the datetime using the ISO 8601 format, i.e.
yyyy-MM-dd'T'HH:mm:ss'Z'
.
-
-