public class

CalendarQuery

extends Query
java.lang.Object
   ↳ com.google.gdata.client.Query
     ↳ com.google.gdata.client.calendar.CalendarQuery

Class Overview

The CalendarQuery class extends the base GData Query class to define convenience APIs for Calendar custom query parameters.

Summary

Nested Classes
class CalendarQuery.ExtendedPropertyMatch The ExtendedPropertyMatch class corresponds to a single extended property match. 
Constants
String EXT_PROP_QUERY The name of the extended property query parameter that specifies that all events' extended properties must have matching values.
String MAXIMUM_START_TIME The name of the custom query parameter that specifies that all events returned must be less than the specified time.
String MINIMUM_START_TIME The name of the custom query parameter that specifies that all events returned must be greater than or equal to the specified time.
[Expand]
Inherited Constants
From class com.google.gdata.client.Query
Fields
private static final ExtendedPropertyMatch[] EMPTY_EXT_PROP_MATCH An empty array of ExtendedPropertyMatch which will be returned from getExtendedPropertyQuery() should the current extended property query be empty.
[Expand]
Inherited Fields
From class com.google.gdata.client.Query
Public Constructors
CalendarQuery(URL feedUrl)
Constructs a new CalendarQuery object that targets a feed.
Public Methods
ExtendedPropertyMatch[] getExtendedPropertyQuery()
Returns an array of extended property matches parsed from the current value of extq custom parameter.
DateTime getMaximumStartTime()
Returns the maximum start time for events returned by the query.
DateTime getMinimumStartTime()
Returns the minimum start time for events returned by the query.
void setExtendedPropertyQuery(ExtendedPropertyMatch... matches)
Sets up the extended property matching for events returned by the query by setting the extq custom parameter value.
void setMaximumStartTime(DateTime maxStart)
Sets the maximum start time for events returned by the query.
void setMinimumStartTime(DateTime minStart)
Sets the minimum start time for events returned by the query.
[Expand]
Inherited Methods
From class com.google.gdata.client.Query
From class java.lang.Object

Constants

public static final String EXT_PROP_QUERY

The name of the extended property query parameter that specifies that all events' extended properties must have matching values.

Constant Value: "extq"

public static final String MAXIMUM_START_TIME

The name of the custom query parameter that specifies that all events returned must be less than the specified time.

Constant Value: "start-max"

public static final String MINIMUM_START_TIME

The name of the custom query parameter that specifies that all events returned must be greater than or equal to the specified time.

Constant Value: "start-min"

Fields

private static final ExtendedPropertyMatch[] EMPTY_EXT_PROP_MATCH

An empty array of ExtendedPropertyMatch which will be returned from getExtendedPropertyQuery() should the current extended property query be empty.

Public Constructors

public CalendarQuery (URL feedUrl)

Constructs a new CalendarQuery 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 ExtendedPropertyMatch[] getExtendedPropertyQuery ()

Returns an array of extended property matches parsed from the current value of extq custom parameter.

Returns
  • the extended property query text. An empty array shall be returned when extended property matching is disabled for this CalendarQuery.

public DateTime getMaximumStartTime ()

Returns the maximum start time for events returned by the query. Only events that start before this time will be returned.

Returns
  • the maximum start time. A value of null indicates that maximum start-time based querying is disabled.

public DateTime getMinimumStartTime ()

Returns the minimum start time for events returned by the query. Only events that start on or after this time will be returned.

Returns
  • the minimum start time. A value of null indicates that minimum start-time based querying is disabled.

public void setExtendedPropertyQuery (ExtendedPropertyMatch... matches)

Sets up the extended property matching for events returned by the query by setting the extq custom parameter value.

Parameters
matches Extended property matches. Only events that satisfy all of these will be returned. A value of null or an empty array of matches disables extended property matching for this CalendarQuery.

public void setMaximumStartTime (DateTime maxStart)

Sets the maximum start time for events returned by the query. Together with setMinimumStartTime(DateTime) creates a timespan such that only events that are within the timespan are returned.

Parameters
maxStart The maximum start time. A value of null disables querying by maximum start time.

public void setMinimumStartTime (DateTime minStart)

Sets the minimum start time for events returned by the query. Together with setMaximumStartTime(DateTime) creates a timespan such that only events that are within the timespan are returned.

Parameters
minStart The minimum start time. A value of null disables querying by minimum start time.