public class

DocumentQuery

extends Query
java.lang.Object
   ↳ com.google.gdata.client.Query
     ↳ com.google.gdata.client.DocumentQuery
Known Direct Subclasses

Class Overview

Simple class for document-based queries, i.e. things that have titles.

Summary

Constants
String DEFAULT_SORT_MODE
String LAST_MODIFIED_SORT
String LAST_VIEWED_SORT
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.
String STARRED_SORT
String TITLE The URI parameter for querying the title or name of a document.
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).
String TITLE_SORT
[Expand]
Inherited Constants
From class com.google.gdata.client.Query
[Expand]
Inherited Fields
From class com.google.gdata.client.Query
Public Constructors
DocumentQuery(URL feedUrl)
Constructs a query for querying spreadsheets that you have access to.
Public Methods
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.
[Expand]
Inherited Methods
From class com.google.gdata.client.Query
From class java.lang.Object

Constants

public static final String DEFAULT_SORT_MODE

Constant Value: "last-modified"

public static final String LAST_MODIFIED_SORT

Constant Value: "last-modified"

public static final String LAST_VIEWED_SORT

Constant Value: "last-viewed"

public static final 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.

Constant Value: "orderby"

public static final String STARRED_SORT

Constant Value: "starred"

public static final String TITLE

The URI parameter for querying the title or name of a document.

Constant Value: "title"

public static final 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).

Constant Value: "title-exact"

public static final String TITLE_SORT

Constant Value: "title"

Public Constructors

public DocumentQuery (URL feedUrl)

Constructs a query for querying spreadsheets that you have access to.

Parameters
feedUrl The feed's URI

Public Methods

public String getSortMode ()

Gets the sort mode

public String getTitleQuery ()

Gets full-text title query.

public boolean isTitleExact ()

Gets whether the query should be exact (rather than keyword-based).

Returns
  • whether the results should be exact

public void setSortMode (String orderby)

Sets the sort mode of the query. Can be one of the following: last-modified (default), last-accessed, title, starred

Parameters
orderby The sort mode

public void setTitleExact (boolean exact)

Sets whether the title match should be exact (instead of keyword-based). By default, the match is not exact.

Parameters
exact Whether the results should be exact

public void setTitleQuery (String titleQuery)

Sets the full-text title search.

Parameters
titleQuery The title query