Package org.apache.abdera.model
Class DateTimeWrapper
- java.lang.Object
-
- org.apache.abdera.model.ElementWrapper
-
- org.apache.abdera.model.DateTimeWrapper
-
- All Implemented Interfaces:
java.lang.Cloneable
,java.lang.Iterable<Element>
,Base
,DateTime
,Element
@Deprecated(since="2021-07-29") public abstract class DateTimeWrapper extends ElementWrapper implements DateTime
Deprecated.This API is deprecated as Apache Abdera is a retired project since 2017.An ElementWrapper implementation that can serve as the basis for Atom Date Construct based extensions.
-
-
Method Summary
All Methods Instance Methods Concrete 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 class org.apache.abdera.model.ElementWrapper
addComment, clone, complete, declareNS, discard, equals, getAttributes, getAttributeValue, getAttributeValue, getBaseUri, getDefaultWriterOptions, getDocument, getElements, getExtensionAttributes, getFactory, getFirstChild, getFirstChild, getInternal, getLanguage, getLanguageTag, getLocale, getMustPreserveWhitespace, getNamespaces, getNextSibling, getNextSibling, getParentElement, getPreviousSibling, getPreviousSibling, getQName, getResolvedBaseUri, getText, hashCode, iterator, removeAttribute, removeAttribute, setAttributeValue, setAttributeValue, setBaseUri, setBaseUri, setLanguage, setMustPreserveWhitespace, setParentElement, setText, setText, toString, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo
-
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
public AtomDate getValue()
Deprecated.Description copied from interface:DateTime
Returns the content value of the element as an AtomDate object
-
setValue
public DateTime setValue(AtomDate dateTime)
Deprecated.Description copied from interface:DateTime
Sets the content value of the element
-
setDate
public DateTime setDate(java.util.Date date)
Deprecated.Description copied from interface:DateTime
Sets the content value of the element
-
setCalendar
public DateTime setCalendar(java.util.Calendar date)
Deprecated.Description copied from interface:DateTime
Sets the content value of the element- Specified by:
setCalendar
in interfaceDateTime
- Parameters:
date
- The java.util.Calendar value
-
setTime
public DateTime setTime(long date)
Deprecated.Description copied from interface:DateTime
Sets the content value of the element
-
setString
public DateTime setString(java.lang.String date)
Deprecated.Description copied from interface:DateTime
Sets the content value of the element
-
getDate
public java.util.Date getDate()
Deprecated.Description copied from interface:DateTime
Returns the content value of the element as a java.util.Date object
-
getCalendar
public java.util.Calendar getCalendar()
Deprecated.Description copied from interface:DateTime
Returns the content value of the element as a java.util.Calendar object- Specified by:
getCalendar
in interfaceDateTime
- Returns:
- The java.util.Calendar value of this element
-
getTime
public long getTime()
Deprecated.Description copied from interface:DateTime
Returns the content value of the element as a long (equivalent to calling DateTimeElement().getDate().getTime()
-
-