com.google.visualization.datasource.query
Enum ComparisonFilter.Operator

java.lang.Object
  extended by java.lang.Enum<ComparisonFilter.Operator>
      extended by com.google.visualization.datasource.query.ComparisonFilter.Operator
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ComparisonFilter.Operator>
Enclosing class:
ComparisonFilter

public static enum ComparisonFilter.Operator
extends java.lang.Enum<ComparisonFilter.Operator>

The set of possible comparison operators for such filters.


Enum Constant Summary
CONTAINS
           
ENDS_WITH
           
EQ
           
GE
           
GT
           
LE
           
LIKE
           
LT
           
MATCHES
           
NE
           
STARTS_WITH
           
 
Method Summary
 boolean areEqualTypesRequired()
          Returns whether or not this instance requires the two types to be equal.
 java.lang.String toQueryString()
          Returns the query string form of this operator.
static ComparisonFilter.Operator valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ComparisonFilter.Operator[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

EQ

public static final ComparisonFilter.Operator EQ

NE

public static final ComparisonFilter.Operator NE

LT

public static final ComparisonFilter.Operator LT

GT

public static final ComparisonFilter.Operator GT

LE

public static final ComparisonFilter.Operator LE

GE

public static final ComparisonFilter.Operator GE

CONTAINS

public static final ComparisonFilter.Operator CONTAINS

STARTS_WITH

public static final ComparisonFilter.Operator STARTS_WITH

ENDS_WITH

public static final ComparisonFilter.Operator ENDS_WITH

MATCHES

public static final ComparisonFilter.Operator MATCHES

LIKE

public static final ComparisonFilter.Operator LIKE
Method Detail

values

public static ComparisonFilter.Operator[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ComparisonFilter.Operator c : ComparisonFilter.Operator.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ComparisonFilter.Operator valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

areEqualTypesRequired

public boolean areEqualTypesRequired()
Returns whether or not this instance requires the two types to be equal.

Returns:
Whether or not this instance requires the two types to be equal.

toQueryString

public java.lang.String toQueryString()
Returns the query string form of this operator.

Returns:
The query string form of this operator.


Copyright © 2009 Google. All Rights Reserved.