public static class

CalendarQuery.ExtendedPropertyMatch

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

Class Overview

The ExtendedPropertyMatch class corresponds to a single extended property match.

Summary

Constants
int MAX_EXTENDED_PROPERTY_NAME_LENGTH The maximum length of an extended property name.
int MAX_EXTENDED_PROPERTY_VALUE_LENGTH The maximum length of an extended property value (after escaped characters have been converted into plain characters, e.g.
String PROPERTY_NAME_REGEX A regex describing the format of extended property names.
String PROPERTY_VALUE_REGEX A regex describing the format of extended property values.
String SINGLE_EXT_PROP_QUERY_REGEX Group 1: property name (without :'s and ='s).
Fields
public static final Pattern EXT_PROP_QUERY_PATTERN A pattern that matches exactly one extended property query within a compound extended property query.
private String expr
private String name
Public Constructors
CalendarQuery.ExtendedPropertyMatch(String name, String value)
Public Methods
static ExtendedPropertyMatch[] arrayFromExtendedPropertyQueryString(String extqQuery)
Converts strings of the form "[foo:bar][baz:bin]" to a map of "foo"->"bar" and "baz"->"bin".
boolean equals(Object other)
String getExpression()
String getName()
int hashCode()
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int MAX_EXTENDED_PROPERTY_NAME_LENGTH

The maximum length of an extended property name.

Constant Value: 44 (0x0000002c)

public static final int MAX_EXTENDED_PROPERTY_VALUE_LENGTH

The maximum length of an extended property value (after escaped characters have been converted into plain characters, e.g. \" -> ").

Constant Value: 1024 (0x00000400)

public static final String PROPERTY_NAME_REGEX

A regex describing the format of extended property names. The name can be a plain string without :'s and ='s.

Constant Value: "[^:=]+"

public static final String PROPERTY_VALUE_REGEX

A regex describing the format of extended property values. The value can be:

  • a (possibly empty) plain string without ]'s (e.g. Foo Property), or
  • a (possibly empty) quoted string with back slashes and quotes escaped by back slashes (e.g. "\"[Property name]\"").

Constant Value: "\"(?:[^\"\\]|(?:\\\\)|(?:\\\"))*\"|[^\]]*"

public static final String SINGLE_EXT_PROP_QUERY_REGEX

Group 1: property name (without :'s and ='s). Group 2: property value (perhaps with surrounding quotes which should be stripped off).

Constant Value: "\[([^:=]+):(\"(?:[^\"\\]|(?:\\\\)|(?:\\\"))*\"|[^\]]*)\]"

Fields

public static final Pattern EXT_PROP_QUERY_PATTERN

A pattern that matches exactly one extended property query within a compound extended property query. E.g. when applied to "[foo:bar][baz:"bin"]", it will consecutively match:

  1. [foo:bar] (group1: foo, group2: bar).
  2. [baz:"bin"] (group1: baz, group2: "bin". Please note that the quotes surrounding 'bin' also belong in the group text and should be stripped prior to further processing of the property value).

private String expr

private String name

Public Constructors

public CalendarQuery.ExtendedPropertyMatch (String name, String value)

Parameters
name Extended property name. May contain up to 44 characters and may not contain ':' or '=' characters.
value To match against the name extended property. May contain up to 1024 characters.

Public Methods

public static ExtendedPropertyMatch[] arrayFromExtendedPropertyQueryString (String extqQuery)

Converts strings of the form "[foo:bar][baz:bin]" to a map of "foo"->"bar" and "baz"->"bin". Ignores quotation marks around values but not around keys. Unescapes backslash-escaped characters.

Parameters
extqQuery A non-null query string.
Throws
IllegalArgumentException whenever the extended property query syntax passed in is invalid.

public boolean equals (Object other)

Parameters
other

public String getExpression ()

public String getName ()

public int hashCode ()

public String toString ()