Package org.apache.abdera.model
Interface DateTime
-
- All Known Implementing Classes:
DateTimeWrapper
@Deprecated(since="2021-07-29") public interface DateTime extends Element
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
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.util.Calendar
getCalendar()
Deprecated.Returns the content value of the element as a java.util.Calendar objectjava.util.Date
getDate()
Deprecated.Returns the content value of the element as a java.util.Date objectjava.lang.String
getString()
Deprecated.Returns the content value of the element as a string conforming to RFC-3339long
getTime()
Deprecated.Returns the content value of the element as a long (equivalent to calling DateTimeElement().getDate().getTime()AtomDate
getValue()
Deprecated.Returns the content value of the element as an AtomDate objectDateTime
setCalendar(java.util.Calendar date)
Deprecated.Sets the content value of the elementDateTime
setDate(java.util.Date date)
Deprecated.Sets the content value of the elementDateTime
setString(java.lang.String date)
Deprecated.Sets the content value of the elementDateTime
setTime(long date)
Deprecated.Sets the content value of the elementDateTime
setValue(AtomDate dateTime)
Deprecated.Sets the content value of the element-
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 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
-
-
-
-
Method Detail
-
getValue
AtomDate getValue()
Deprecated.Returns the content value of the element as an AtomDate object- Returns:
- The Atom Date value of this element
-
getDate
java.util.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
java.util.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
java.lang.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
DateTime setValue(AtomDate dateTime)
Deprecated.Sets the content value of the element- Parameters:
dateTime
- the Atom Date value
-
setDate
DateTime setDate(java.util.Date date)
Deprecated.Sets the content value of the element- Parameters:
date
- The java.util.Date value
-
setCalendar
DateTime setCalendar(java.util.Calendar date)
Deprecated.Sets the content value of the element- Parameters:
date
- The java.util.Calendar value
-
setTime
DateTime setTime(long date)
Deprecated.Sets the content value of the element- Parameters:
date
- the number of milliseconds since January 1, 1970, 00:00:00 GMT
-
setString
DateTime setString(java.lang.String date)
Deprecated.Sets the content value of the element- Parameters:
date
- The serialized string value
-
-