Package rocks.xmpp.extensions.time.model
Class EntityTime
- java.lang.Object
-
- rocks.xmpp.extensions.time.model.EntityTime
-
public final class EntityTime extends Object
The implementation of the<time/>
element in theurn:xmpp:time
namespace.This class is immutable.
- See Also:
- XEP-0202: Entity Time, XML Schema
-
-
Constructor Summary
Constructors Constructor Description EntityTime()
Creates a empty entity time element for requesting entity time.EntityTime(OffsetDateTime dateTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OffsetDateTime
getDateTime()
Gets the entity's date.String
toString()
-
-
-
Field Detail
-
NAMESPACE
public static final String NAMESPACE
urn:xmpp:time- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EntityTime
public EntityTime()
Creates a empty entity time element for requesting entity time.
-
EntityTime
public EntityTime(OffsetDateTime dateTime)
-
-
Method Detail
-
getDateTime
public final OffsetDateTime getDateTime()
Gets the entity's date.- Returns:
- The date.
-
-