Package ucar.nc2.constants
Enum CF.FeatureType
- java.lang.Object
-
- java.lang.Enum<CF.FeatureType>
-
- ucar.nc2.constants.CF.FeatureType
-
- All Implemented Interfaces:
Serializable
,Comparable<CF.FeatureType>
- Enclosing class:
- CF
public static enum CF.FeatureType extends Enum<CF.FeatureType>
Map from CF feature type names to our FeatureType enums.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description line
point
polygon
profile
timeSeries
timeSeriesProfile
trajectory
trajectoryProfile
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FeatureType
convert(CF.FeatureType cff)
static CF.FeatureType
convert(FeatureType ft)
static CF.FeatureType
getFeatureType(String s)
static CF.FeatureType
getFeatureTypeFromGlobalAttribute(NetcdfFile ds)
static CF.FeatureType
valueOf(String name)
Returns the enum constant of this type with the specified name.static CF.FeatureType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
point
public static final CF.FeatureType point
-
timeSeries
public static final CF.FeatureType timeSeries
-
profile
public static final CF.FeatureType profile
-
trajectory
public static final CF.FeatureType trajectory
-
timeSeriesProfile
public static final CF.FeatureType timeSeriesProfile
-
trajectoryProfile
public static final CF.FeatureType trajectoryProfile
-
line
public static final CF.FeatureType line
-
polygon
public static final CF.FeatureType polygon
-
-
Method Detail
-
values
public static CF.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 (CF.FeatureType c : CF.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 CF.FeatureType 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 nameNullPointerException
- if the argument is null
-
convert
@Nullable public static CF.FeatureType convert(FeatureType ft)
-
convert
@Nullable public static FeatureType convert(CF.FeatureType cff)
-
getFeatureType
@Nullable public static CF.FeatureType getFeatureType(String s)
-
getFeatureTypeFromGlobalAttribute
@Nullable public static CF.FeatureType getFeatureTypeFromGlobalAttribute(NetcdfFile ds)
-
-