org.broadleafcommerce.common
Class TimeDTO

java.lang.Object
  extended by org.broadleafcommerce.common.TimeDTO

public class TimeDTO
extends Object

Created by bpolster.


Constructor Summary
TimeDTO()
           
TimeDTO(Calendar cal)
           
 
Method Summary
 Date getDate()
           
 Integer getDayOfMonth()
           
 Integer getDayOfWeek()
           
 Integer getHour()
           
 Integer getMinute()
           
 Integer getMonth()
           
 void setCal(Calendar cal)
           
 void setDate(Date date)
           
 void setDayOfMonth(Integer dayOfMonth)
           
 void setDayOfWeek(Integer dayOfWeek)
           
 void setHour(Integer hour)
           
 void setMinute(Integer minute)
           
 void setMonth(Integer month)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeDTO

public TimeDTO()

TimeDTO

public TimeDTO(Calendar cal)
Method Detail

getHour

public Integer getHour()
Returns:
int representing the hour of day as 0 - 23

getDayOfWeek

public Integer getDayOfWeek()
Returns:
int representing the day of week using Calendar.DAY_OF_WEEK values. 1 = Sunday, 7 = Saturday

getDayOfMonth

public Integer getDayOfMonth()
Returns:
the current day of the month (1-31).

getMonth

public Integer getMonth()
Returns:
int representing the current month (1-12)

getMinute

public Integer getMinute()

getDate

public Date getDate()

setCal

public void setCal(Calendar cal)

setHour

public void setHour(Integer hour)

setDayOfWeek

public void setDayOfWeek(Integer dayOfWeek)

setMonth

public void setMonth(Integer month)

setDayOfMonth

public void setDayOfMonth(Integer dayOfMonth)

setDate

public void setDate(Date date)

setMinute

public void setMinute(Integer minute)


Copyright © 2012. All Rights Reserved.