public final class RealTimeText
extends java.lang.Object
The implementation of the <rtt/>
element in the urn:xmpp:rtt:0
namespace.
Modifier and Type | Class and 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. |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAMESPACE
urn:xmpp:rtt:0
|
Constructor and Description |
---|
RealTimeText(RealTimeText.Event event,
java.util.Collection<RealTimeText.Action> actions,
int sequence,
java.lang.String id)
Creates a
<rtt/> element. |
Modifier and Type | Method and Description |
---|---|
java.util.List<RealTimeText.Action> |
getActions()
Gets the actions.
|
RealTimeText.Event |
getEvent()
Gets the event.
|
java.lang.String |
getId()
Gets the id.
|
java.lang.Integer |
getSequence()
Gets the sequence.
|
public static final java.lang.String NAMESPACE
urn:xmpp:rtt:0
public RealTimeText(RealTimeText.Event event, java.util.Collection<RealTimeText.Action> actions, int sequence, java.lang.String id)
Creates a <rtt/>
element.
event
- The event.actions
- The actions.sequence
- The sequence number.id
- The id (optional).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.
public final java.lang.Integer getSequence()
Gets the sequence.
public final java.util.List<RealTimeText.Action> getActions()
Gets the actions.
public final java.lang.String getId()
Gets the id.
Copyright © 2014–2019 XMPP.rocks. All rights reserved.