public class

ContentQuery

extends Query
java.lang.Object
   ↳ com.google.gdata.client.Query
     ↳ com.google.gdata.client.sites.ContentQuery

Class Overview

Describes a query for the feed containing the current, editable site content.

Summary

[Expand]
Inherited Constants
From class com.google.gdata.client.Query
Fields
private String ancestor Content with the given ancestor.
private Boolean includeDeleted Include deleted entries.
private Boolean includeDrafts Include draft entries.
private String kind Content of a the given kind(s).
private String parent Content with the given parent.
private String path Content at the given site path.
[Expand]
Inherited Fields
From class com.google.gdata.client.Query
Public Constructors
ContentQuery(URL feedUrl)
Constructs a new query object that targets a feed.
Public Methods
String getAncestor()
Returns the content with the given ancestor.
Boolean getIncludeDeleted()
Returns the include deleted entries.
Boolean getIncludeDrafts()
Returns the include draft entries.
String getKind()
Returns the content of a the given kind(s).
String getParent()
Returns the content with the given parent.
String getPath()
Returns the content at the given site path.
void setAncestor(String ancestor)
Sets the content with the given ancestor.
void setIncludeDeleted(Boolean includeDeleted)
Sets the include deleted entries.
void setIncludeDrafts(Boolean includeDrafts)
Sets the include draft entries.
void setKind(String kind)
Sets the content of a the given kind(s).
void setParent(String parent)
Sets the content with the given parent.
void setPath(String path)
Sets the content at the given site path.
[Expand]
Inherited Methods
From class com.google.gdata.client.Query
From class java.lang.Object

Fields

private String ancestor

Content with the given ancestor.

private Boolean includeDeleted

Include deleted entries.

private Boolean includeDrafts

Include draft entries.

private String kind

Content of a the given kind(s).

private String parent

Content with the given parent.

private String path

Content at the given site path.

Public Constructors

public ContentQuery (URL feedUrl)

Constructs a new query object that targets a feed. The initial state of the query contains no parameters, meaning all entries in the feed would be returned if the query was executed immediately after construction.

Parameters
feedUrl The URL of the feed against which queries will be executed.

Public Methods

public String getAncestor ()

Returns the content with the given ancestor.

Returns
  • content with the given ancestor or null to indicate that the parameter is not set.

public Boolean getIncludeDeleted ()

Returns the include deleted entries.

Returns
  • include deleted entries or null to indicate that the parameter is not set.

public Boolean getIncludeDrafts ()

Returns the include draft entries.

Returns
  • include draft entries or null to indicate that the parameter is not set.

public String getKind ()

Returns the content of a the given kind(s).

Returns
  • content of a the given kind(s) or null to indicate that the parameter is not set.

public String getParent ()

Returns the content with the given parent.

Returns
  • content with the given parent or null to indicate that the parameter is not set.

public String getPath ()

Returns the content at the given site path.

Returns
  • content at the given site path or null to indicate that the parameter is not set.

public void setAncestor (String ancestor)

Sets the content with the given ancestor.

Parameters
ancestor Content with the given ancestor or null to remove this parameter if set.

public void setIncludeDeleted (Boolean includeDeleted)

Sets the include deleted entries.

Parameters
includeDeleted Include deleted entries or null to remove this parameter if set.

public void setIncludeDrafts (Boolean includeDrafts)

Sets the include draft entries.

Parameters
includeDrafts Include draft entries or null to remove this parameter if set.

public void setKind (String kind)

Sets the content of a the given kind(s).

Parameters
kind Content of a the given kind(s) or null to remove this parameter if set.

public void setParent (String parent)

Sets the content with the given parent.

Parameters
parent Content with the given parent or null to remove this parameter if set.

public void setPath (String path)

Sets the content at the given site path.

Parameters
path Content at the given site path or null to remove this parameter if set.