Class RSMSet
- java.lang.Object
-
- org.jivesoftware.smackx.rsm.packet.RSMSet
-
- All Implemented Interfaces:
Element
,ExtensionElement
,FullyQualifiedElement
,NamedElement
,XmlLangElement
public class RSMSet extends Object implements ExtensionElement
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RSMSet.PageDirection
-
Constructor Summary
Constructors Constructor Description RSMSet(int max)
RSMSet(int max, int index)
RSMSet(int max, String item, RSMSet.PageDirection pageDirection)
RSMSet(String after, String before, int count, int index, String last, int max, String firstString, int firstIndex)
RSMSet(String item, RSMSet.PageDirection pageDirection)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RSMSet
from(Stanza packet)
String
getAfter()
String
getBefore()
int
getCount()
String
getElementName()
Returns the root element name.String
getFirst()
int
getFirstIndex()
int
getIndex()
String
getLast()
int
getMax()
String
getNamespace()
Returns the root element XML namespace.static RSMSet
newAfter(String after)
static RSMSet
newBefore(String before)
XmlStringBuilder
toXML(XmlEnvironment enclosingNamespace)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jivesoftware.smack.packet.FullyQualifiedElement
getLanguage, getQName
-
-
-
-
Field Detail
-
ELEMENT
public static final String ELEMENT
- See Also:
- Constant Field Values
-
NAMESPACE
public static final String NAMESPACE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RSMSet
public RSMSet(int max)
-
RSMSet
public RSMSet(int max, int index)
-
RSMSet
public RSMSet(String item, RSMSet.PageDirection pageDirection)
-
RSMSet
public RSMSet(int max, String item, RSMSet.PageDirection pageDirection)
-
-
Method Detail
-
getCount
public int getCount()
-
getIndex
public int getIndex()
-
getMax
public int getMax()
-
getFirstIndex
public int getFirstIndex()
-
getElementName
public String getElementName()
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
getNamespace
public String getNamespace()
Description copied from interface:FullyQualifiedElement
Returns the root element XML namespace.- Specified by:
getNamespace
in interfaceFullyQualifiedElement
- Returns:
- the namespace.
-
toXML
public XmlStringBuilder toXML(XmlEnvironment enclosingNamespace)
-
-