pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.util.time
Class CalendarJAXBOutputWrapper

java.lang.Object
  extended by org.torweg.pulse.util.time.CalendarJAXBOutputWrapper

public class CalendarJAXBOutputWrapper
extends java.lang.Object

A wrapper for outputting Calendars via JAXB.

Version:
$Revision: 1470 $
Author:
Daniel Dietz

Constructor Summary
protected CalendarJAXBOutputWrapper()
          Deprecated. 
  CalendarJAXBOutputWrapper(java.util.Calendar cal)
          Creates a new CalendarJAXBOutputWrapper with the given Calendar.
 
Method Summary
 java.util.Calendar getCalendar()
          Returns the underlying Calendar.
 java.lang.Integer getDay()
          Returns the underlying Calendars' day (day of month).
 java.lang.Integer getDayOfWeek()
          Returns the underlying Calendars' day (day of week).
 java.lang.Integer getFirstDayOfWeek()
          Returns the underlying Calendars' first day of week.
 java.lang.Integer getHour()
          Returns the underlying Calendars' hour (hour of day).
 java.lang.Integer getMilliSecond()
          Returns the underlying Calendars' millisecond.
 java.lang.Integer getMinute()
          Returns the underlying Calendars' minute.
 java.lang.Integer getMonth()
          Returns the underlying Calendars' month.
 java.lang.Integer getSecond()
          Returns the underlying Calendars' second.
 java.lang.String getStringValue()
          Returns a string, the underlying Calendars' Date.
 java.lang.Long getTimeInMillis()
          Returns the underlying Calendars' time in milliseconds.
 java.lang.String getTimeZoneID()
          Returns the underlying Calendars' time-zone ID.
 java.lang.Integer getYear()
          Returns the underlying Calendars' year.
 void setCalendar(java.util.Calendar cal)
          Sets the Calendar.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalendarJAXBOutputWrapper

@Deprecated
protected CalendarJAXBOutputWrapper()
Deprecated. 

Default constructor.


CalendarJAXBOutputWrapper

public CalendarJAXBOutputWrapper(java.util.Calendar cal)
Creates a new CalendarJAXBOutputWrapper with the given Calendar.

Parameters:
cal - the Calendar
Method Detail

getCalendar

public final java.util.Calendar getCalendar()
Returns the underlying Calendar.

Returns:
the underlying Calendar

setCalendar

public final void setCalendar(java.util.Calendar cal)
Sets the Calendar.

Parameters:
cal - the Calendar to set

getTimeInMillis

public final java.lang.Long getTimeInMillis()
Returns the underlying Calendars' time in milliseconds.

Returns:
the underlying Calendars' time in milliseconds

getTimeZoneID

public final java.lang.String getTimeZoneID()
Returns the underlying Calendars' time-zone ID.

Returns:
the underlying Calendars' time-zone ID

getFirstDayOfWeek

public final java.lang.Integer getFirstDayOfWeek()
Returns the underlying Calendars' first day of week.

Returns:
the underlying Calendars' first day of week

getYear

public final java.lang.Integer getYear()
Returns the underlying Calendars' year.

Returns:
the underlying Calendars' year

getMonth

public final java.lang.Integer getMonth()
Returns the underlying Calendars' month.

Returns:
the underlying Calendars' month

getDay

public final java.lang.Integer getDay()
Returns the underlying Calendars' day (day of month).

Returns:
the underlying Calendars' day (day of month)

getDayOfWeek

public final java.lang.Integer getDayOfWeek()
Returns the underlying Calendars' day (day of week).

Returns:
the underlying Calendars' day (day of week)

getHour

public final java.lang.Integer getHour()
Returns the underlying Calendars' hour (hour of day).

Returns:
the underlying Calendars' hour (hour of day)

getMinute

public final java.lang.Integer getMinute()
Returns the underlying Calendars' minute.

Returns:
the underlying Calendars' minute

getSecond

public final java.lang.Integer getSecond()
Returns the underlying Calendars' second.

Returns:
the underlying Calendars' second

getMilliSecond

public final java.lang.Integer getMilliSecond()
Returns the underlying Calendars' millisecond.

Returns:
the underlying Calendars' millisecond

getStringValue

public final java.lang.String getStringValue()
Returns a string, the underlying Calendars' Date.

Returns:
the underlying Calendars' Date as string