|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbiweekly.property.marshaller.ICalPropertyMarshaller.DateWriter
protected static class ICalPropertyMarshaller.DateWriter
Factory class for writing dates.
| Constructor Summary | |
|---|---|
ICalPropertyMarshaller.DateWriter(Date date)
Creates a new date writer object. |
|
| Method Summary | |
|---|---|
ICalPropertyMarshaller.DateWriter |
extended(boolean extended)
Sets whether to use extended format or basic. |
ICalPropertyMarshaller.DateWriter |
time(boolean hasTime)
Sets whether to output the date's time component. |
ICalPropertyMarshaller.DateWriter |
tz(TimeZone timezone)
Sets the timezone to format the date as. |
ICalPropertyMarshaller.DateWriter |
tzid(String timezoneId)
Sets the ID of the timezone to format the date as (TZID parameter value). |
String |
write()
Creates the date string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ICalPropertyMarshaller.DateWriter(Date date)
date - the date to format| Method Detail |
|---|
public ICalPropertyMarshaller.DateWriter time(boolean hasTime)
hasTime - true include the time, false if it's strictly a date
(defaults to "true")
public ICalPropertyMarshaller.DateWriter tzid(String timezoneId)
timezoneId - the timezone ID
public ICalPropertyMarshaller.DateWriter tz(TimeZone timezone)
timezone - the timezone
public ICalPropertyMarshaller.DateWriter extended(boolean extended)
extended - true to use extended format, false to use basic
(defaults to "false")
public String write()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||