Package thredds.server.ncss.format
Enum SupportedOperation
- java.lang.Object
-
- java.lang.Enum<SupportedOperation>
-
- thredds.server.ncss.format.SupportedOperation
-
- All Implemented Interfaces:
Serializable,Comparable<SupportedOperation>
public enum SupportedOperation extends Enum<SupportedOperation>
An enum of the various operations for netcdf subset service, and what download formats are allowed
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DATASET_BOUNDARIES_REQUESTDATASET_INFO_REQUESTGRID_AS_POINT_REQUESTGRID_REQUESTPOINT_REQUESTSTATION_REQUEST
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SupportedFormatgetDefaultFormat()StringgetName()SupportedFormatgetSupportedFormat(String want)List<SupportedFormat>getSupportedFormats()static SupportedOperationvalueOf(String name)Returns the enum constant of this type with the specified name.static SupportedOperation[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DATASET_INFO_REQUEST
public static final SupportedOperation DATASET_INFO_REQUEST
-
DATASET_BOUNDARIES_REQUEST
public static final SupportedOperation DATASET_BOUNDARIES_REQUEST
-
GRID_REQUEST
public static final SupportedOperation GRID_REQUEST
-
GRID_AS_POINT_REQUEST
public static final SupportedOperation GRID_AS_POINT_REQUEST
-
POINT_REQUEST
public static final SupportedOperation POINT_REQUEST
-
STATION_REQUEST
public static final SupportedOperation STATION_REQUEST
-
-
Method Detail
-
values
public static SupportedOperation[] 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 (SupportedOperation c : SupportedOperation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SupportedOperation 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
-
getName
public String getName()
-
getSupportedFormats
public List<SupportedFormat> getSupportedFormats()
-
getDefaultFormat
public SupportedFormat getDefaultFormat()
-
getSupportedFormat
@Nonnull public SupportedFormat getSupportedFormat(String want) throws UnsupportedResponseFormatException
-
-