|
|||||||||
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
Constructor Summary | |
---|---|
protected |
DateTimeWrapper(Element internal)
|
protected |
DateTimeWrapper(Factory factory,
javax.xml.namespace.QName qname)
|
Method Summary | |
---|---|
java.util.Calendar |
getCalendar()
Returns the content value of the element as a java.util.Calendar object |
java.util.Date |
getDate()
Returns the content value of the element as a java.util.Date object |
java.lang.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 |
void |
setCalendar(java.util.Calendar date)
Sets the content value of the element |
void |
setDate(java.util.Date date)
Sets the content value of the element |
void |
setString(java.lang.String date)
Sets the content value of the element |
void |
setTime(long date)
Sets the content value of the element |
void |
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, setAttributeValue, setAttributeValue, setBaseUri, setBaseUri, setLanguage, setMustPreserveWhitespace, setParentElement, setText, setText |
Methods inherited from interface org.apache.abdera.model.Base |
---|
addComment, clone, getDefaultWriterOptions, getFactory, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo |
Constructor Detail |
---|
protected DateTimeWrapper(Element internal)
protected DateTimeWrapper(Factory factory, javax.xml.namespace.QName qname)
Method Detail |
---|
public AtomDate getValue()
DateTime
getValue
in interface DateTime
public void setValue(AtomDate dateTime)
DateTime
setValue
in interface DateTime
dateTime
- the Atom Date valuepublic void setDate(java.util.Date date)
DateTime
setDate
in interface DateTime
date
- The java.util.Date valuepublic void setCalendar(java.util.Calendar date)
DateTime
setCalendar
in interface DateTime
date
- The java.util.Calendar valuepublic void setTime(long date)
DateTime
setTime
in interface DateTime
date
- the number of milliseconds since January 1, 1970, 00:00:00 GMTpublic void setString(java.lang.String date)
DateTime
setString
in interface DateTime
date
- The serialized string valuepublic java.util.Date getDate()
DateTime
getDate
in interface DateTime
public java.util.Calendar getCalendar()
DateTime
getCalendar
in interface DateTime
public long getTime()
DateTime
getTime
in interface DateTime
public java.lang.String getString()
DateTime
getString
in interface DateTime
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |