Package thredds.server.ncss.format
Enum SupportedFormat
- java.lang.Object
-
- java.lang.Enum<SupportedFormat>
-
- thredds.server.ncss.format.SupportedFormat
-
- All Implemented Interfaces:
Serializable,Comparable<SupportedFormat>
public enum SupportedFormat extends Enum<SupportedFormat>
An enumeration of the possible ncss download formats
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CSV_FILECSV_STREAMJSONNETCDF3NETCDF4NETCDF4EXTWATERML2WKTXML_FILEXML_STREAM
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getAliases()StringgetFileSuffix()StringgetFormatName()StringgetMimeType()booleanisAlias(String want)booleanisBinary()booleanisStream()booleanisText()static SupportedFormatvalueOf(String name)Returns the enum constant of this type with the specified name.static SupportedFormat[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CSV_STREAM
public static final SupportedFormat CSV_STREAM
-
CSV_FILE
public static final SupportedFormat CSV_FILE
-
XML_STREAM
public static final SupportedFormat XML_STREAM
-
XML_FILE
public static final SupportedFormat XML_FILE
-
NETCDF3
public static final SupportedFormat NETCDF3
-
NETCDF4
public static final SupportedFormat NETCDF4
-
NETCDF4EXT
public static final SupportedFormat NETCDF4EXT
-
JSON
public static final SupportedFormat JSON
-
WKT
public static final SupportedFormat WKT
-
WATERML2
public static final SupportedFormat WATERML2
-
-
Method Detail
-
values
public static SupportedFormat[] 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 (SupportedFormat c : SupportedFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SupportedFormat 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
-
getFormatName
public String getFormatName()
-
getMimeType
public String getMimeType()
-
isAlias
public boolean isAlias(String want)
-
isStream
public boolean isStream()
-
isBinary
public boolean isBinary()
-
isText
public boolean isText()
-
getFileSuffix
public String getFileSuffix()
-
-