Package rocks.xmpp.extensions.rtt.model
Class RealTimeText
- java.lang.Object
-
- rocks.xmpp.extensions.rtt.model.RealTimeText
-
public final class RealTimeText extends Object
The implementation of the<rtt/>
element in theurn:xmpp:rtt:0
namespace.- See Also:
- XEP-0301: In-Band Real Time Text, XML Schema
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RealTimeText.Action
An abstract base class for all three RTT actions.static class
RealTimeText.EraseText
The implementation of the<e/>
element.static class
RealTimeText.Event
The real-time text event.static class
RealTimeText.InsertText
The implementation of the<t/>
element.static class
RealTimeText.WaitInterval
The implementation of the<w/>
element.
-
Constructor Summary
Constructors Constructor Description RealTimeText(RealTimeText.Event event, Collection<RealTimeText.Action> actions, int sequence, String id)
Creates a<rtt/>
element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<RealTimeText.Action>
getActions()
Gets the actions.RealTimeText.Event
getEvent()
Gets the event.String
getId()
Gets the id.Integer
getSequence()
Gets the sequence.
-
-
-
Field Detail
-
NAMESPACE
public static final String NAMESPACE
urn:xmpp:rtt:0- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RealTimeText
public RealTimeText(RealTimeText.Event event, Collection<RealTimeText.Action> actions, int sequence, String id)
Creates a<rtt/>
element.- Parameters:
event
- The event.actions
- The actions.sequence
- The sequence number.id
- The id (optional).
-
-
Method Detail
-
getEvent
public final RealTimeText.Event getEvent()
Gets the event.This attribute signals events for real-time text. If the 'event' attribute is omitted, event="edit" is assumed as the default.
- Returns:
- The event.
- See Also:
- 4.2.2 event
-
getSequence
public final Integer getSequence()
Gets the sequence.- Returns:
- The sequence.
- See Also:
- 4.2.1 seq
-
getActions
public final List<RealTimeText.Action> getActions()
Gets the actions.- Returns:
- The actions.
- See Also:
- 4.6 Real-Time Text Actions
-
-