|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.appengine.api.search.checkers.DocumentChecker
public final class DocumentChecker
Checks values of a Document.
| Field Summary | |
|---|---|
static int |
MAXIMUM_DOCUMENT_ID_LENGTH
The maximum length of a document id. |
static int |
MAXIMUM_DOCUMENT_LENGTH
|
| Constructor Summary | |
|---|---|
DocumentChecker()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
checkDocumentId(java.lang.String documentId)
Checks whether a document id is valid. |
static void |
checkFieldSet(DocumentPb.Document document)
Checks whether a document's field set is valid. |
static DocumentPb.Document |
checkValid(DocumentPb.Document pb)
Checks whether a DocumentPb.Document has a valid set
of fields. |
static int |
getNumberOfSecondsSince()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MAXIMUM_DOCUMENT_ID_LENGTH
public static final int MAXIMUM_DOCUMENT_LENGTH
| Constructor Detail |
|---|
public DocumentChecker()
| Method Detail |
|---|
public static java.lang.String checkDocumentId(java.lang.String documentId)
documentId - the document id to check
java.lang.IllegalArgumentException - if the document id is invalidpublic static void checkFieldSet(DocumentPb.Document document)
document - the document to check
java.lang.IllegalArgumentException - if the document contains an invalid set of fields.public static DocumentPb.Document checkValid(DocumentPb.Document pb)
DocumentPb.Document has a valid set
of fields.
pb - the DocumentPb.Document protocol buffer to check
java.lang.IllegalArgumentException - if some field is invalid such as
document id or fieldspublic static int getNumberOfSecondsSince()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||