|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.appengine.api.search.checkers.ListDocumentsRequestChecker
public class ListDocumentsRequestChecker
Checks values of ListDocumentsParams
.
Field Summary | |
---|---|
static int |
DEFAULT_LIMIT
The default number of documents requested. |
static int |
MAXIMUM_LIMIT
The maximum number of documents which can be requested. |
Constructor Summary | |
---|---|
ListDocumentsRequestChecker()
|
Method Summary | |
---|---|
static int |
checkLimit(int limit)
Checks whether the number of documents to return is between 1 and the maximum. |
static ListDocumentsParams |
checkListDocumentsParams(ListDocumentsParams params)
Checks the values of the ListDocumentsParams params. |
static java.lang.String |
checkStartDocId(java.lang.String startDocId)
Checks whether the given start document Is legal. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MAXIMUM_LIMIT
public static final int DEFAULT_LIMIT
Constructor Detail |
---|
public ListDocumentsRequestChecker()
Method Detail |
---|
public static int checkLimit(int limit)
limit
- the maximum number of documents to return in results list
java.lang.IllegalArgumentException
- if the number of documents to return
is out of rangepublic static java.lang.String checkStartDocId(java.lang.String startDocId)
startDocId
- the start ocument Id to be checked.
java.lang.IllegalArgumentException
- if the start document Id is illegal.public static ListDocumentsParams checkListDocumentsParams(ListDocumentsParams params)
ListDocumentsParams
params.
params
- The ListDocumentsParams
to check
java.lang.IllegalArgumentException
- if some of the values of params are
invalid
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |