|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.appengine.api.search.checkers.ListIndexesRequestChecker
public class ListIndexesRequestChecker
Checks values of ListIndexesRequest.
| Field Summary | |
|---|---|
static int |
DEFAULT_LIMIT
The default number of indexes we will try to return. |
static int |
MAXIMUM_LIMIT
The maximum number of indexes that can be requested to be returned in list indexes results. |
static int |
MAXIMUM_OFFSET
The maximum offset of the first index returned in list indexes results. |
| Constructor Summary | |
|---|---|
ListIndexesRequestChecker()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
checkIndexNamePrefix(java.lang.String indexNamePrefix)
Checks whether the given index name prefix is legal. |
static int |
checkLimit(int limit)
Checks whether the number of indexes to return is between 1 and the maximum. |
static ListIndexesParams |
checkListIndexesParams(ListIndexesParams params)
Ensures the given protocol buffer parameters are valid. |
static int |
checkOffset(int offset)
Checks whether the offset of the first indexes to return is between 0 and the maximum. |
static java.lang.String |
checkStartIndexName(java.lang.String startIndexName)
Checks whether the given start index name 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_OFFSET
public static final int MAXIMUM_LIMIT
public static final int DEFAULT_LIMIT
| Constructor Detail |
|---|
public ListIndexesRequestChecker()
| Method Detail |
|---|
public static int checkLimit(int limit)
limit - the maximum number of indexes to return in list results
java.lang.IllegalArgumentException - if the number of indexes to return
is out of rangepublic static int checkOffset(int offset)
offset - the offset of the first index to return in list results
java.lang.IllegalArgumentException - if the offset of the first index to return
is out of rangepublic static java.lang.String checkIndexNamePrefix(java.lang.String indexNamePrefix)
IndexChecker.checkName(String).
indexNamePrefix - the index name prefix to be checked
java.lang.IllegalArgumentException - if the index name prefix is illegal.public static java.lang.String checkStartIndexName(java.lang.String startIndexName)
IndexChecker.checkName(String).
startIndexName - the name of the first index to be returned
java.lang.IllegalArgumentException - if the start index name is illegal.public static ListIndexesParams checkListIndexesParams(ListIndexesParams params)
IllegalArgumentException. If
everything is valid the original parameters are returned.
params - the parameters to be checked for validity
java.lang.IllegalArgumentException - if any of the values are incorrect
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||