Package org.apache.abdera.model
Class DateTimeWrapper
java.lang.Object
org.apache.abdera.model.ElementWrapper
org.apache.abdera.model.DateTimeWrapper
@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
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 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, writeToMethods 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
Deprecated.Description copied from interface:DateTimeReturns the content value of the element as an AtomDate object -
setValue
Deprecated.Description copied from interface:DateTimeSets the content value of the element -
setDate
Deprecated.Description copied from interface:DateTimeSets the content value of the element -
setCalendar
Deprecated.Description copied from interface:DateTimeSets the content value of the element- Specified by:
setCalendarin interfaceDateTime- Parameters:
date- The java.util.Calendar value
-
setTime
Deprecated.Description copied from interface:DateTimeSets the content value of the element -
setString
Deprecated.Description copied from interface:DateTimeSets the content value of the element -
getDate
Deprecated.Description copied from interface:DateTimeReturns the content value of the element as a java.util.Date object -
getCalendar
Deprecated.Description copied from interface:DateTimeReturns the content value of the element as a java.util.Calendar object- Specified by:
getCalendarin interfaceDateTime- Returns:
- The java.util.Calendar value of this element
-
getTime
public long getTime()Deprecated.Description copied from interface:DateTimeReturns the content value of the element as a long (equivalent to calling DateTimeElement().getDate().getTime() -
getString
Deprecated.Description copied from interface:DateTimeReturns the content value of the element as a string conforming to RFC-3339
-