Class TimeBuilder
java.lang.Object
org.jivesoftware.smack.packet.StanzaBuilder<TimeBuilder>
org.jivesoftware.smack.packet.AbstractIqBuilder<TimeBuilder>
org.jivesoftware.smack.packet.IqBuilder<TimeBuilder, Time>
org.jivesoftware.smackx.time.packet.TimeBuilder
- All Implemented Interfaces:
IqView, StanzaView, XmlLangElement, TimeView
-
Field Summary
Fields inherited from class AbstractIqBuilder
type -
Method Summary
Modifier and TypeMethodDescriptionbuild()getThis()Returns the time ornullif the time hasn't been set.set(ZonedDateTime zonedDateTime) setUtcAndTzo(String utc, String tzo) Sets the time using UTC formatted String, in the format CCYY-MM-DDThh:mm:ssZ, and the provided timezone definition in the format (+|-)hh:mm.Methods inherited from class AbstractIqBuilder
addStanzaSpecificAttributes, createErrorResponse, createResponse, createResponse, getTypeMethods inherited from class StanzaBuilder
addExtension, addExtensions, addOptExtensions, buildIqData, buildMessage, buildMessage, buildMessageFrom, buildMessageFrom, buildPresence, buildPresence, buildPresenceFrom, buildPresenceFrom, buildResponse, from, from, getError, getExtension, getExtensions, getExtensions, getExtensions, getFrom, getLanguage, getStanzaId, getTo, overrideExtension, removeExtension, removeExtension, setError, setLanguage, throwIfNoStanzaId, to, to, toString, willBuildStanzaWithIdMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface IqView
getType, isRequestIQ, isResponseIQMethods inherited from interface StanzaView
getError, getExtension, getExtension, getExtensions, getExtensions, getExtensions, getFrom, getStanzaId, getTo, hasExtension, hasExtension, hasExtensionMethods inherited from interface XmlLangElement
getLanguage
-
Method Details
-
getZonedDateTime
Description copied from interface:TimeViewReturns the time ornullif the time hasn't been set.- Specified by:
getZonedDateTimein interfaceTimeView- Returns:
- the time.
-
set
-
setUtcAndTzo
Sets the time using UTC formatted String, in the format CCYY-MM-DDThh:mm:ssZ, and the provided timezone definition in the format (+|-)hh:mm.- Parameters:
utc- the time using a formatted String.tzo- the time zone definition.- Returns:
- a reference to this builder.
- Throws:
ParseException- if the provided string is not parsable (e.g. because it does not follow the expected format).
-
setTime
-
build
-
getThis
- Specified by:
getThisin classStanzaBuilder<TimeBuilder>
-