Esri Geoportal Server
1.0

com.esri.gpt.catalog.discovery
Enum PropertyComparisonType

java.lang.Object
  extended by java.lang.Enum<PropertyComparisonType>
      extended by com.esri.gpt.catalog.discovery.PropertyComparisonType
All Implemented Interfaces:
Serializable, Comparable<PropertyComparisonType>

public enum PropertyComparisonType
extends Enum<PropertyComparisonType>

The enumeration of comparison types for a property.

ANYTEXT: Represents a placeholder for term/expression based queries against multiple fields.

KEYWORD: A storable String that supports non-tokenized, case insensitive, comparison and sorting.

NONE: A storable String that can be retrieved but not queried.

TERMS: A storable tokenized String that supports term/expression based queries as well as case insensitive comparison and sorting.

VALUE: A storable tokenized String that supports direct, case sensitive comparison and sorting.


Enum Constant Summary
ANYTEXT
           
KEYWORD
           
NONE
           
TERMS
           
VALUE
           
 
Method Summary
static PropertyComparisonType from(String value)
          Makes a property comparison type from a supplied string value.
static PropertyComparisonType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PropertyComparisonType[] 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

ANYTEXT

public static final PropertyComparisonType ANYTEXT

KEYWORD

public static final PropertyComparisonType KEYWORD

NONE

public static final PropertyComparisonType NONE

TERMS

public static final PropertyComparisonType TERMS

VALUE

public static final PropertyComparisonType VALUE
Method Detail

values

public static PropertyComparisonType[] 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 (PropertyComparisonType c : PropertyComparisonType.values())
    System.out.println(c);

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

valueOf

public static PropertyComparisonType valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

from

public static PropertyComparisonType from(String value)
                                   throws IllegalArgumentException
Makes a property comparison type from a supplied string value.
I null or an empty string is supplied, PropertyComparisonType.NONE is returned.

Parameters:
value - the value
Returns:
the property comparison type
Throws:
IllegalArgumentException - if the value was invalid

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.