com.citygrid.content.places.search
Enum CGPlacesSearchType

java.lang.Object
  extended by java.lang.Enum<CGPlacesSearchType>
      extended by com.citygrid.content.places.search.CGPlacesSearchType
All Implemented Interfaces:
Serializable, Comparable<CGPlacesSearchType>

public enum CGPlacesSearchType
extends Enum<CGPlacesSearchType>


Enum Constant Summary
BarClub
           
Hotel
           
Movie
           
MovieTheater
           
Restaurant
           
Shopping
           
SpaBeauty
           
Travel
           
Unknown
           
 
Field Summary
private  int code
           
private  String name
           
 
Method Summary
 int getCode()
           
 String getName()
           
static CGPlacesSearchType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CGPlacesSearchType[] 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

Unknown

public static final CGPlacesSearchType Unknown

Movie

public static final CGPlacesSearchType Movie

MovieTheater

public static final CGPlacesSearchType MovieTheater

Restaurant

public static final CGPlacesSearchType Restaurant

Hotel

public static final CGPlacesSearchType Hotel

Travel

public static final CGPlacesSearchType Travel

BarClub

public static final CGPlacesSearchType BarClub

SpaBeauty

public static final CGPlacesSearchType SpaBeauty

Shopping

public static final CGPlacesSearchType Shopping
Field Detail

code

private int code

name

private String name
Method Detail

values

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

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

valueOf

public static CGPlacesSearchType 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

getCode

public int getCode()

getName

public String getName()


Copyright © 2011. All Rights Reserved.