Package org.apache.abdera.model
Interface DateTime
- All Known Implementing Classes:
DateTimeWrapper
Deprecated.
This API is deprecated as Apache Abdera is a retired project since 2017.
An element conforming to the Atom Date Construct. The data type implementation for this element is provided by the AtomDate class.
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns the content value of the element as a java.util.Calendar objectgetDate()Deprecated.Returns the content value of the element as a java.util.Date objectDeprecated.Returns the content value of the element as a string conforming to RFC-3339longgetTime()Deprecated.Returns the content value of the element as a long (equivalent to calling DateTimeElement().getDate().getTime()getValue()Deprecated.Returns the content value of the element as an AtomDate objectsetCalendar(Calendar date) Deprecated.Sets the content value of the elementDeprecated.Sets the content value of the elementDeprecated.Sets the content value of the elementsetTime(long date) Deprecated.Sets the content value of the elementDeprecated.Sets the content value of the elementMethods inherited from interface org.apache.abdera.model.Base
addComment, clone, complete, getDefaultWriterOptions, getFactory, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeToMethods 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, setTextMethods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
getValue
AtomDate getValue()Deprecated.Returns the content value of the element as an AtomDate object- Returns:
- The Atom Date value of this element
-
getDate
Date getDate()Deprecated.Returns the content value of the element as a java.util.Date object- Returns:
- The java.util.Date value of this element
-
getCalendar
Calendar getCalendar()Deprecated.Returns the content value of the element as a java.util.Calendar object- Returns:
- The java.util.Calendar value of this element
-
getTime
long getTime()Deprecated.Returns the content value of the element as a long (equivalent to calling DateTimeElement().getDate().getTime()- Returns:
- The number of milliseconds since January 1, 1970, 00:00:00 GMT
-
getString
String getString()Deprecated.Returns the content value of the element as a string conforming to RFC-3339- Returns:
- The serialized string form of this element
-
setValue
Deprecated.Sets the content value of the element- Parameters:
dateTime- the Atom Date value
-
setDate
Deprecated.Sets the content value of the element- Parameters:
date- The java.util.Date value
-
setCalendar
Deprecated.Sets the content value of the element- Parameters:
date- The java.util.Calendar value
-
setTime
Deprecated.Sets the content value of the element- Parameters:
date- the number of milliseconds since January 1, 1970, 00:00:00 GMT
-
setString
Deprecated.Sets the content value of the element- Parameters:
date- The serialized string value
-