org.apache.maven.plugins.pdf
Class DateBean

java.lang.Object
  extended byorg.apache.maven.plugins.pdf.DateBean

public class DateBean
extends java.lang.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(java.util.Date date)
          Construct a new DateBean with a given Date.
 
Method Summary
 java.lang.String getDate()
           
 java.lang.String getDateTime()
           
 java.lang.String getDay()
           
 java.lang.String getHour()
           
 java.lang.String getMillisecond()
           
 java.lang.String getMinute()
           
 java.lang.String getMonth()
           
 java.lang.String getSecond()
           
 java.lang.String getTime()
           
 java.lang.String getYear()
           
 void setDate(java.util.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(java.util.Date date)
Construct a new DateBean with a given Date.

Parameters:
date - the date to set.
Method Detail

setDate

public void setDate(java.util.Date date)
Set the Date of this bean.

Parameters:
date - the date to set.

getYear

public java.lang.String getYear()
Returns:
the year in format "yyyy".

getMonth

public java.lang.String getMonth()
Returns:
the month in format "MM".

getDay

public java.lang.String getDay()
Returns:
the day in format "dd".

getHour

public java.lang.String getHour()
Returns:
the hour in format "HH".

getMinute

public java.lang.String getMinute()
Returns:
the minute in format "mm".

getSecond

public java.lang.String getSecond()
Returns:
the second in format "ss".

getMillisecond

public java.lang.String getMillisecond()
Returns:
the millisecond in format "SSS".

getDate

public java.lang.String getDate()
Returns:
the date using the ISO 8601 format, i.e. yyyy-MM-dd.

getTime

public java.lang.String getTime()
Returns:
the time using the ISO 8601 format and UTC time zone, i.e. HH:mm:ss'Z'.

getDateTime

public java.lang.String getDateTime()
Returns:
the datetime using the ISO 8601 format, i.e. yyyy-MM-dd'T'HH:mm:ss'Z'.


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