public class

ContactQuery

extends Query
java.lang.Object
   ↳ com.google.gdata.client.Query
     ↳ com.google.gdata.client.contacts.ContactQuery

Class Overview

Describes a query for the following feeds:

  • The feed of contacts
  • The feed of contact groups

Summary

Nested Classes
enum ContactQuery.OrderBy Order of entries in a feed. 
enum ContactQuery.SortOrder Direction of sorting. 
[Expand]
Inherited Constants
From class com.google.gdata.client.Query
Fields
private String group Group id.
private ContactQuery.OrderBy orderBy Order of entries in a feed.
private Boolean showDeleted Should tombstones be returned.
private ContactQuery.SortOrder sortOrder Direction of sorting.
[Expand]
Inherited Fields
From class com.google.gdata.client.Query
Public Constructors
ContactQuery(URL feedUrl)
Constructs a new query object that targets a feed.
Public Methods
String getGroup()
Returns the group id.
ContactQuery.OrderBy getOrderBy()
Returns the order of entries in a feed.
Boolean getShowDeleted()
Returns the should tombstones be returned.
ContactQuery.SortOrder getSortOrder()
Returns the direction of sorting.
void setGroup(String group)
Sets the group id.
void setOrderBy(ContactQuery.OrderBy orderBy)
Sets the order of entries in a feed.
void setShowDeleted(Boolean showDeleted)
Sets the should tombstones be returned.
void setSortOrder(ContactQuery.SortOrder sortOrder)
Sets the direction of sorting.
[Expand]
Inherited Methods
From class com.google.gdata.client.Query
From class java.lang.Object

Fields

private String group

Group id.

private ContactQuery.OrderBy orderBy

Order of entries in a feed.

private Boolean showDeleted

Should tombstones be returned.

private ContactQuery.SortOrder sortOrder

Direction of sorting.

Public Constructors

public ContactQuery (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 getGroup ()

Returns the group id. Results are limited to contacts belonging to this group..

Returns
  • group id or null to indicate that the parameter is not set.

public ContactQuery.OrderBy getOrderBy ()

Returns the order of entries in a feed.

Returns
  • order of entries in a feed.

public Boolean getShowDeleted ()

Returns the should tombstones be returned.

Returns
  • should tombstones be returned.

public ContactQuery.SortOrder getSortOrder ()

Returns the direction of sorting.

Returns
  • direction of sorting.

public void setGroup (String group)

Sets the group id. Results are limited to contacts belonging to this group..

Parameters
group Group id or null to remove this parameter if set.

public void setOrderBy (ContactQuery.OrderBy orderBy)

Sets the order of entries in a feed.

Parameters
orderBy Order of entries in a feed or null to reset this parameter to default value NONE.

public void setShowDeleted (Boolean showDeleted)

Sets the should tombstones be returned.

Parameters
showDeleted Should tombstones be returned or null to reset this parameter to default value false.

public void setSortOrder (ContactQuery.SortOrder sortOrder)

Sets the direction of sorting.

Parameters
sortOrder Direction of sorting or null to reset this parameter to default value NONE.