org.geonames
Enum FeatureClass

java.lang.Object
  extended by java.lang.Enum<FeatureClass>
      extended by org.geonames.FeatureClass
All Implemented Interfaces:
Serializable, Comparable<FeatureClass>

public enum FeatureClass
extends Enum<FeatureClass>

Enumeration for the GeoNames feature classes A,H,L,P,R,S,T,U,V

Author:
marc

Enum Constant Summary
A
          Administrative Boundary Features
H
          Hydrographic Features
L
          Area Features
P
          Populated Place Features
R
          Road / Railroad Features
S
          Spot Features
T
          Hypsographic Features
U
          Undersea Features
V
          Vegetation Features
 
Method Summary
static FeatureClass fromValue(String value)
           
static FeatureClass valueOf(String name)
          Returns the enum constant of this type with the specified name.
static FeatureClass[] 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

A

public static final FeatureClass A
Administrative Boundary Features


H

public static final FeatureClass H
Hydrographic Features


L

public static final FeatureClass L
Area Features


P

public static final FeatureClass P
Populated Place Features


R

public static final FeatureClass R
Road / Railroad Features


S

public static final FeatureClass S
Spot Features


T

public static final FeatureClass T
Hypsographic Features


U

public static final FeatureClass U
Undersea Features


V

public static final FeatureClass V
Vegetation Features

Method Detail

values

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

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

valueOf

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

fromValue

public static FeatureClass fromValue(String value)