Class 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 Detail

      • getValue

        public AtomDate getValue()
        Deprecated.
        Description copied from interface: DateTime
        Returns the content value of the element as an AtomDate object
        Specified by:
        getValue in interface DateTime
        Returns:
        The Atom Date value of this element
      • setValue

        public DateTime setValue​(AtomDate dateTime)
        Deprecated.
        Description copied from interface: DateTime
        Sets the content value of the element
        Specified by:
        setValue in interface DateTime
        Parameters:
        dateTime - the Atom Date value
      • setDate

        public DateTime setDate​(java.util.Date date)
        Deprecated.
        Description copied from interface: DateTime
        Sets the content value of the element
        Specified by:
        setDate in interface DateTime
        Parameters:
        date - The java.util.Date value
      • 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 interface DateTime
        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
        Specified by:
        setTime in interface DateTime
        Parameters:
        date - the number of milliseconds since January 1, 1970, 00:00:00 GMT
      • setString

        public DateTime setString​(java.lang.String date)
        Deprecated.
        Description copied from interface: DateTime
        Sets the content value of the element
        Specified by:
        setString in interface DateTime
        Parameters:
        date - The serialized string value
      • 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
        Specified by:
        getDate in interface DateTime
        Returns:
        The java.util.Date value of this element
      • 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 interface DateTime
        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()
        Specified by:
        getTime in interface DateTime
        Returns:
        The number of milliseconds since January 1, 1970, 00:00:00 GMT
      • getString

        public java.lang.String getString()
        Deprecated.
        Description copied from interface: DateTime
        Returns the content value of the element as a string conforming to RFC-3339
        Specified by:
        getString in interface DateTime
        Returns:
        The serialized string form of this element