org.apache.abdera.model
Interface DateTime

All Superinterfaces:
Base, java.lang.Cloneable, Element, java.io.Serializable

public interface DateTime
extends Element

An element conforming to the Atom Date Construct. The data type implementation for this element is provided by the AtomDate class.


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 interface org.apache.abdera.model.Element
discard, getAttributes, getAttributeValue, getAttributeValue, getBaseUri, getDocument, getExtensionAttributes, getFirstChild, getFirstChild, getLanguage, getNextSibling, getNextSibling, getParentElement, getPreviousSibling, getPreviousSibling, getQName, getResolvedBaseUri, getText, removeAttribute, setAttributeValue, setAttributeValue, setBaseUri, setBaseUri, setLanguage, setParentElement, setText
 
Methods inherited from interface org.apache.abdera.model.Base
clone, getFactory, writeTo, writeTo
 

Method Detail

getValue

AtomDate getValue()
Returns the content value of the element as an AtomDate object


getDate

java.util.Date getDate()
Returns the content value of the element as a java.util.Date object


getCalendar

java.util.Calendar getCalendar()
Returns the content value of the element as a java.util.Calendar object


getTime

long getTime()
Returns the content value of the element as a long (equivalent to calling DateTimeElement().getDate().getTime()


getString

java.lang.String getString()
Returns the content value of the element as a string conforming to RFC-3339


setValue

void setValue(AtomDate dateTime)
Sets the content value of the element


setDate

void setDate(java.util.Date date)
Sets the content value of the element


setCalendar

void setCalendar(java.util.Calendar date)
Sets the content value of the element


setTime

void setTime(long date)
Sets the content value of the element


setString

void setString(java.lang.String date)
Sets the content value of the element