public final class ResultSetManagement extends Object
<set/> element in the http://jabber.org/protocol/rsm namespace.| Modifier and Type | Field and Description |
|---|---|
static String |
NAMESPACE
http://jabber.org/protocol/rsm
|
| Modifier and Type | Method and Description |
|---|---|
static ResultSetManagement |
forCount(int count)
Gets a result set, which has a count information.
|
static ResultSetManagement |
forCount(Integer count,
Integer index,
String first,
String last)
Gets a result set, which has a count information, including first and last item.
|
static ResultSetManagement |
forItemCount()
Gets a result set, which gets the item count of a result without retrieving the items themselves.
|
static ResultSetManagement |
forLastPage(int limit)
Gets a result set, which requests the last page.
|
static ResultSetManagement |
forLimit(int limit)
Gets a result set, which limits the number of items of a result to be returned.
|
static ResultSetManagement |
forLimit(int limit,
int index)
Gets a result set, which starts at a particular index.
|
static ResultSetManagement |
forNextPage(int max,
String id)
Gets a result set, which requests the next page after a specified item.
|
static ResultSetManagement |
forPreviousPage(int max,
String id)
Gets a result set, which requests the previous page before a specified item.
|
String |
getAfter()
Gets the 'after' element.
|
String |
getBefore()
Gets the 'before' element.
|
String |
getFirstItem()
Gets the first item.
|
Integer |
getFirstItemIndex()
Gets the first item's index.
|
Integer |
getIndex()
Gets the index.
|
Integer |
getItemCount()
Gets the item count of a result set.
|
String |
getLastItem()
Gets the last item.
|
Integer |
getMaxSize()
Gets the max size.
|
public static final String NAMESPACE
public static ResultSetManagement forLimit(int limit)
limit - The limit, i.e. the maximum number of items.public static ResultSetManagement forNextPage(int max, String id)
max - The item count per page.id - The id of the last item of the previous page. This should be the getLastItem() ()} of the previous page.public static ResultSetManagement forPreviousPage(int max, String id)
max - The item count per page.id - The id of the first item of the next page. This should be the getFirstItem() of the next page.public static ResultSetManagement forLastPage(int limit)
limit - The item count per page.public static ResultSetManagement forLimit(int limit, int index)
limit - The item count per page.index - The index to start from.public static ResultSetManagement forCount(int count)
count - The item count per page.public static ResultSetManagement forCount(Integer count, Integer index, String first, String last)
count - The item count per page.index - The index of the first item.first - The first item.last - The last item.public static ResultSetManagement forItemCount()
public final Integer getItemCount()
public final String getFirstItem()
public final Integer getFirstItemIndex()
public final String getLastItem()
public final Integer getMaxSize()
public final String getAfter()
public final String getBefore()
public final Integer getIndex()
Copyright © 2014–2015 XMPP.rocks. All rights reserved.