public class ExplicitDate
extends PersistableValue
Recurrence
,
OdiSchedule
,
RecurrenceAttributes.Year
,
RecurrenceAttributes.MonthOfYear
,
RecurrenceAttributes.DayOfMonth
,
RecurrenceAttributes.TimeOfDay
Constructor and Description |
---|
ExplicitDate(java.util.Calendar pCalendar)
Constructs the instance of ExplicitDate from java.util.Calendar object.
|
ExplicitDate(RecurrenceAttributes.Year pYear,
RecurrenceAttributes.MonthOfYear pMonth,
RecurrenceAttributes.DayOfMonth pDay,
RecurrenceAttributes.TimeOfDay pTime)
Constructs the instance of ExplicitDate with specified year, month,
day and time.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
RecurrenceAttributes.DayOfMonth |
getDay()
Returns the day of month.
|
RecurrenceAttributes.MonthOfYear |
getMonth()
Returns the month.
|
RecurrenceAttributes.TimeOfDay |
getTime()
Returns time of day.
|
RecurrenceAttributes.Year |
getYear()
Returns the year.
|
int |
hashCode() |
java.util.Calendar |
toCalendar()
Obtains the java.util.Calendar instance based on this ExplicitDate's
properties.
|
java.lang.String |
toString() |
public ExplicitDate(RecurrenceAttributes.Year pYear, RecurrenceAttributes.MonthOfYear pMonth, RecurrenceAttributes.DayOfMonth pDay, RecurrenceAttributes.TimeOfDay pTime)
pYear
- yearpMonth
- monthpDay
- day of monthpTime
- time of dayDomainRuntimeException
- if specified year, month, day or time is nullRecurrenceAttributes.TimeOfDay
public ExplicitDate(java.util.Calendar pCalendar)
pCalendar
- calendarDomainRuntimeException
- if null specifiedpublic java.util.Calendar toCalendar()
public RecurrenceAttributes.Year getYear()
RecurrenceAttributes.Year
public RecurrenceAttributes.MonthOfYear getMonth()
RecurrenceAttributes.MonthOfYear
public RecurrenceAttributes.DayOfMonth getDay()
RecurrenceAttributes.DayOfMonth
public RecurrenceAttributes.TimeOfDay getTime()
RecurrenceAttributes.TimeOfDay
public int hashCode()
public boolean equals(java.lang.Object obj)
public java.lang.String toString()