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:0namespace.- See Also:
- XEP-0301: In-Band Real Time Text, XML Schema
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRealTimeText.ActionAn abstract base class for all three RTT actions.static classRealTimeText.EraseTextThe implementation of the<e/>element.static classRealTimeText.EventThe real-time text event.static classRealTimeText.InsertTextThe implementation of the<t/>element.static classRealTimeText.WaitIntervalThe 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.EventgetEvent()Gets the event.StringgetId()Gets the id.IntegergetSequence()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
-
-