ucar.nc2.constants
Enum FeatureType

java.lang.Object
  extended by java.lang.Enum<FeatureType>
      extended by ucar.nc2.constants.FeatureType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<FeatureType>

public enum FeatureType
extends java.lang.Enum<FeatureType>

Type-safe enumeration of CDM Feature types, aka "Scientific Data Types".

Author:
john caron
See Also:
CDM Feature Types

Enum Constant Summary
ANY_POINT
           
GRID
           
IMAGE
           
NONE
           
POINT
           
PROFILE
           
RADIAL
           
SECTION
           
STATION
           
STATION_PROFILE
           
STATION_RADIAL
           
SWATH
           
TRAJECTORY
           
 
Method Summary
static FeatureType getType(java.lang.String name)
          Find the FeatureType that matches this name.
static FeatureType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static FeatureType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NONE

public static final FeatureType NONE

GRID

public static final FeatureType GRID

IMAGE

public static final FeatureType IMAGE

POINT

public static final FeatureType POINT

PROFILE

public static final FeatureType PROFILE

RADIAL

public static final FeatureType RADIAL

SECTION

public static final FeatureType SECTION

STATION

public static final FeatureType STATION

SWATH

public static final FeatureType SWATH

TRAJECTORY

public static final FeatureType TRAJECTORY

STATION_PROFILE

public static final FeatureType STATION_PROFILE

STATION_RADIAL

public static final FeatureType STATION_RADIAL

ANY_POINT

public static final FeatureType ANY_POINT
Method Detail

values

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

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

valueOf

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

getType

public static FeatureType getType(java.lang.String name)
Find the FeatureType that matches this name.

Parameters:
name - find FeatureType with this name.
Returns:
FeatureType or null if no match.