|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.abdera.model.ElementWrapper
org.apache.abdera.model.DateTimeWrapper
public abstract class DateTimeWrapper
An ElementWrapper implementation that can serve as the basis for Atom Date Construct based extensions.
| Constructor Summary | |
|---|---|
protected |
DateTimeWrapper(Element internal)
|
protected |
DateTimeWrapper(Factory factory,
QName qname)
|
| Method Summary | |
|---|---|
Calendar |
getCalendar()
Returns the content value of the element as a java.util.Calendar object |
Date |
getDate()
Returns the content value of the element as a java.util.Date object |
String |
getString()
Returns the content value of the element as a string conforming to RFC-3339 |
long |
getTime()
Returns the content value of the element as a long (equivalent to calling DateTimeElement().getDate().getTime() |
AtomDate |
getValue()
Returns the content value of the element as an AtomDate object |
DateTime |
setCalendar(Calendar date)
Sets the content value of the element |
DateTime |
setDate(Date date)
Sets the content value of the element |
DateTime |
setString(String date)
Sets the content value of the element |
DateTime |
setTime(long date)
Sets the content value of the element |
DateTime |
setValue(AtomDate dateTime)
Sets the content value of the element |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.abdera.model.Element |
|---|
declareNS, discard, getAttributes, getAttributeValue, getAttributeValue, getBaseUri, getDocument, getElements, getExtensionAttributes, getFirstChild, getFirstChild, getLanguage, getLanguageTag, getLocale, getMustPreserveWhitespace, getNamespaces, getNextSibling, getNextSibling, getParentElement, getPreviousSibling, getPreviousSibling, getQName, getResolvedBaseUri, getText, removeAttribute, removeAttribute, setAttributeValue, setAttributeValue, setBaseUri, setBaseUri, setLanguage, setMustPreserveWhitespace, setParentElement, setText, setText |
| Methods inherited from interface org.apache.abdera.model.Base |
|---|
addComment, clone, complete, getDefaultWriterOptions, getFactory, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo |
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Constructor Detail |
|---|
protected DateTimeWrapper(Element internal)
protected DateTimeWrapper(Factory factory,
QName qname)
| Method Detail |
|---|
public AtomDate getValue()
DateTime
getValue in interface DateTimepublic DateTime setValue(AtomDate dateTime)
DateTime
setValue in interface DateTimedateTime - the Atom Date valuepublic DateTime setDate(Date date)
DateTime
setDate in interface DateTimedate - The java.util.Date valuepublic DateTime setCalendar(Calendar date)
DateTime
setCalendar in interface DateTimedate - The java.util.Calendar valuepublic DateTime setTime(long date)
DateTime
setTime in interface DateTimedate - the number of milliseconds since January 1, 1970, 00:00:00 GMTpublic DateTime setString(String date)
DateTime
setString in interface DateTimedate - The serialized string valuepublic Date getDate()
DateTime
getDate in interface DateTimepublic Calendar getCalendar()
DateTime
getCalendar in interface DateTimepublic long getTime()
DateTime
getTime in interface DateTimepublic String getString()
DateTime
getString in interface DateTime
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||