org.apache.maven.plugins.pdf
Class DateBean

java.lang.Object
  extended by 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
 

Version:
$Id: DateBean.java 787005 2009-06-21 12:54:41Z ltheussl $
Author:
ltheussl

Constructor Summary
DateBean()
          Construct a new DateBean for the current Date.
DateBean(Date date)
          Construct a new DateBean with a given Date.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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'.


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.