thredds.catalog
Class DataFormatType

java.lang.Object
  extended by thredds.catalog.DataFormatType

public final class DataFormatType
extends java.lang.Object

Type-safe enumeration of THREDDS data format types.

Author:
john caron

Field Summary
static DataFormatType BUFR
           
static DataFormatType ESML
           
static DataFormatType GEMPAK
           
static DataFormatType GIF
           
static DataFormatType GINI
           
static DataFormatType GRIB1
           
static DataFormatType GRIB2
           
static DataFormatType HDF4
           
static DataFormatType HDF5
           
static DataFormatType JPEG
           
static DataFormatType MCIDAS_AREA
           
static DataFormatType MPEG
           
static DataFormatType NCML
           
static DataFormatType NETCDF
           
static DataFormatType NEXRAD2
           
static DataFormatType NIDS
           
static DataFormatType NONE
           
static DataFormatType OTHER_UNKNOWN
           
static DataFormatType PLAIN
           
static DataFormatType QUICKTIME
           
static DataFormatType REALTIME
           
static DataFormatType TIFF
           
static DataFormatType TSV
           
static DataFormatType XML
           
 
Method Summary
 boolean equals(java.lang.Object o)
          DataFormatType with same name are equal.
static DataFormatType findType(java.lang.String name)
          Find the known DataFormatType that matches the given name (ignoring case) or null if the name is unknown.
static java.util.Collection<DataFormatType> getAllTypes()
          Return all DataFormatType objects
static DataFormatType getType(java.lang.String name)
          Return a DataFormatType for the given name by either matching a known type (ignoring case) or creating an unknown type.
 int hashCode()
          Override Object.hashCode() to be consistent with this equals.
 java.lang.String toString()
          Return the DataFormatType name.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NONE

public static final DataFormatType NONE

BUFR

public static final DataFormatType BUFR

ESML

public static final DataFormatType ESML

GEMPAK

public static final DataFormatType GEMPAK

GINI

public static final DataFormatType GINI

GRIB1

public static final DataFormatType GRIB1

GRIB2

public static final DataFormatType GRIB2

HDF4

public static final DataFormatType HDF4

HDF5

public static final DataFormatType HDF5

NETCDF

public static final DataFormatType NETCDF

NEXRAD2

public static final DataFormatType NEXRAD2

NCML

public static final DataFormatType NCML

NIDS

public static final DataFormatType NIDS

MCIDAS_AREA

public static final DataFormatType MCIDAS_AREA

GIF

public static final DataFormatType GIF

JPEG

public static final DataFormatType JPEG

TIFF

public static final DataFormatType TIFF

PLAIN

public static final DataFormatType PLAIN

TSV

public static final DataFormatType TSV

XML

public static final DataFormatType XML

MPEG

public static final DataFormatType MPEG

QUICKTIME

public static final DataFormatType QUICKTIME

REALTIME

public static final DataFormatType REALTIME

OTHER_UNKNOWN

public static final DataFormatType OTHER_UNKNOWN
Method Detail

getAllTypes

public static java.util.Collection<DataFormatType> getAllTypes()
Return all DataFormatType objects

Returns:
Collection of known DataFormatType-s

findType

public static DataFormatType findType(java.lang.String name)
Find the known DataFormatType that matches the given name (ignoring case) or null if the name is unknown.

Parameters:
name - name of the desired DataFormatType.
Returns:
DataFormatType or null if no match.

getType

public static DataFormatType getType(java.lang.String name)
Return a DataFormatType for the given name by either matching a known type (ignoring case) or creating an unknown type.

Parameters:
name - name of the desired DataFormatType.
Returns:
the named DataFormatType or null if given name is null.

toString

public java.lang.String toString()
Return the DataFormatType name.

Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Override Object.hashCode() to be consistent with this equals.

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
DataFormatType with same name are equal.

Overrides:
equals in class java.lang.Object