|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbiweekly.property.ICalProperty
biweekly.property.DateOrDateTimeProperty
public class DateOrDateTimeProperty
Represents a property whose value is a date or a date-time.
Field Summary | |
---|---|
protected boolean |
hasTime
|
protected Date |
value
|
Fields inherited from class biweekly.property.ICalProperty |
---|
parameters |
Constructor Summary | |
---|---|
DateOrDateTimeProperty(Date value,
boolean hasTime)
Creates a new property. |
Method Summary | |
---|---|
String |
getTimezoneId()
Gets the timezone identifier. |
Date |
getValue()
Gets the date. |
boolean |
hasTime()
Determines whether the date has a time component. |
void |
setTimezone(VTimezone timezone)
Sets the property's timezone to a timezone that is defined within the iCalendar object. |
void |
setTimezoneId(String timezoneId)
Sets the property's timezone in the form of a globally-defined timezone (e.g. |
void |
setValue(Date value,
boolean hasTime)
Sets the date. |
protected void |
validate(List<ICalComponent> components,
List<String> warnings)
Checks the property for data consistency problems or deviations from the spec. |
Methods inherited from class biweekly.property.ICalProperty |
---|
addParameter, getAltRepresentation, getCommonName, getDirectoryEntry, getFormatType, getLanguage, getParameter, getParameters, getParameters, getSentBy, removeParameter, setAltRepresentation, setCommonName, setDirectoryEntry, setFormatType, setLanguage, setParameter, setParameter, setParameters, setSentBy, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Date value
protected boolean hasTime
Constructor Detail |
---|
public DateOrDateTimeProperty(Date value, boolean hasTime)
value
- the datehasTime
- true if the date has a time component, false if it is
strictly a dateMethod Detail |
---|
public Date getValue()
public void setValue(Date value, boolean hasTime)
value
- the datehasTime
- true if the date has a time component, false if it is
strictly a datepublic boolean hasTime()
public String getTimezoneId()
ICalProperty
TimezoneId
property of a VTimezone
component, or (b)
specifies a globally-defined timezone (e.g. "America/New_York"). For a
list of globally-defined timezones, see the TZ database.
getTimezoneId
in class ICalProperty
public void setTimezoneId(String timezoneId)
ICalProperty
ICalProperty.setTimezone(VTimezone)
to use a timezone that's defined within
the iCalendar object.
setTimezoneId
in class ICalProperty
timezoneId
- the timezone identifier (e.g. "America/New_York") or
null to removepublic void setTimezone(VTimezone timezone)
ICalProperty
ICalProperty.setTimezoneId(String)
to use a
globally-defined timezone (e.g. "America/New_York").
setTimezone
in class ICalProperty
timezone
- the timezone component or null to removeprotected void validate(List<ICalComponent> components, List<String> warnings)
ICalProperty
validate
in class ICalProperty
components
- the hierarchy of components that the property belongs
towarnings
- the list to add the warnings to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |