public class DocumentQuery extends Query
Query.CategoryFilter, Query.CustomParameter, Query.ResultFormat| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_SORT_MODE |
static String |
LAST_MODIFIED_SORT |
static String |
LAST_VIEWED_SORT |
static String |
ORDERBY
The URI parameter for how the query should be sorted, can sort by
last-modified, last-accessed, title and starred; will default to
last-modified.
|
static String |
STARRED_SORT |
static String |
TITLE
The URI parameter for querying the title or name of a document.
|
static String |
TITLE_EXACT
The URI parameter for a boolean flag for whether the title should be
matched exactly (case-insensitive or sensitive depending on service).
|
static String |
TITLE_SORT |
| Constructor and Description |
|---|
DocumentQuery(URL feedUrl)
Constructs a query for querying spreadsheets that you have access to.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getSortMode()
Gets the sort mode
|
String |
getTitleQuery()
Gets full-text title query.
|
boolean |
isTitleExact()
Gets whether the query should be exact (rather than keyword-based).
|
void |
setSortMode(String orderby)
Sets the sort mode of the query.
|
void |
setTitleExact(boolean exact)
Sets whether the title match should be exact (instead of keyword-based).
|
void |
setTitleQuery(String titleQuery)
Sets the full-text title search.
|
addCategoryFilter, addCustomParameter, appendQueryParameter, getAuthor, getCategoryFilters, getCustomParameters, getCustomParameters, getFeedUrl, getFields, getFullTextQuery, getIntegerCustomParameter, getMaxResults, getPublishedMax, getPublishedMin, getQueryUri, getResultFormat, getStartIndex, getStringCustomParameter, getUpdatedMax, getUpdatedMin, getUrl, isStrict, isValidState, setAuthor, setFields, setFullTextQuery, setIntegerCustomParameter, setMaxResults, setPublishedMax, setPublishedMin, setResultFormat, setStartIndex, setStrict, setStringCustomParameter, setUpdatedMax, setUpdatedMinpublic static final String TITLE
public static final String TITLE_EXACT
public static final String ORDERBY
public static final String LAST_MODIFIED_SORT
public static final String LAST_VIEWED_SORT
public static final String TITLE_SORT
public static final String STARRED_SORT
public static final String DEFAULT_SORT_MODE
public DocumentQuery(URL feedUrl)
feedUrl - the feed's URIpublic void setTitleQuery(String titleQuery)
titleQuery - the title querypublic String getTitleQuery()
public void setTitleExact(boolean exact)
exact - whether the results should be exactpublic boolean isTitleExact()
public void setSortMode(String orderby)
orderby - the sort modepublic String getSortMode()
Copyright © 2012. All Rights Reserved.