Package thredds.catalog
Class ServiceType
- java.lang.Object
-
- thredds.catalog.ServiceType
-
public final class ServiceType extends Object
Type-safe enumeration of THREDDS Service types.
-
-
Field Summary
Fields Modifier and Type Field Description static ServiceTypeADDEstatic ServiceTypeCATALOGstatic ServiceTypeCdmRemotestatic ServiceTypeCdmrFeaturestatic ServiceTypeCOMPOUNDstatic ServiceTypeDAP4static ServiceTypeDODSstatic ServiceTypeFILEstatic ServiceTypeFTPstatic ServiceTypeGRIDFTPstatic ServiceTypeH5Servicestatic ServiceTypeHTTPstatic ServiceTypeHTTPServerstatic ServiceTypeISOstatic ServiceTypeLASstatic ServiceTypencJSONstatic ServiceTypeNCMLstatic ServiceTypeNETCDFstatic ServiceTypeNetcdfServerstatic ServiceTypeNetcdfSubsetstatic ServiceTypeNONEstatic ServiceTypeOPENDAPstatic ServiceTypeOPENDAPGstatic ServiceTypeQCstatic ServiceTypeRESOLVERstatic ServiceTypeTHREDDSstatic ServiceTypeUDDCstatic ServiceTypeWCSstatic ServiceTypeWebFormstatic ServiceTypeWFSstatic ServiceTypeWMSstatic ServiceTypeWSDL
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)ServiceType with same name are equal.static ServiceTypefindType(String name)Return the known ServiceType that matches the given name (ignoring case) or null if the name is unknown.static Collection<ServiceType>getAllTypes()Get all ServiceType objectsstatic ServiceTypegetType(String name)Return a ServiceType that matches the given name by either matching a known type (ignoring case) or creating an unknown type.inthashCode()Override Object.hashCode() to be consistent with this equals.StringtoString()Return the ServiceType name.
-
-
-
Field Detail
-
NONE
public static final ServiceType NONE
-
ADDE
public static final ServiceType ADDE
-
DODS
public static final ServiceType DODS
-
OPENDAP
public static final ServiceType OPENDAP
-
DAP4
public static final ServiceType DAP4
-
OPENDAPG
public static final ServiceType OPENDAPG
-
HTTPServer
public static final ServiceType HTTPServer
-
FTP
public static final ServiceType FTP
-
GRIDFTP
public static final ServiceType GRIDFTP
-
FILE
public static final ServiceType FILE
-
LAS
public static final ServiceType LAS
-
WMS
public static final ServiceType WMS
-
WFS
public static final ServiceType WFS
-
WCS
public static final ServiceType WCS
-
WSDL
public static final ServiceType WSDL
-
NCML
public static final ServiceType NCML
-
UDDC
public static final ServiceType UDDC
-
ISO
public static final ServiceType ISO
-
ncJSON
public static final ServiceType ncJSON
-
H5Service
public static final ServiceType H5Service
-
WebForm
public static final ServiceType WebForm
-
CATALOG
public static final ServiceType CATALOG
-
QC
public static final ServiceType QC
-
RESOLVER
public static final ServiceType RESOLVER
-
COMPOUND
public static final ServiceType COMPOUND
-
THREDDS
public static final ServiceType THREDDS
-
NetcdfSubset
public static final ServiceType NetcdfSubset
-
CdmRemote
public static final ServiceType CdmRemote
-
CdmrFeature
public static final ServiceType CdmrFeature
-
NETCDF
public static final ServiceType NETCDF
-
HTTP
public static final ServiceType HTTP
-
NetcdfServer
public static final ServiceType NetcdfServer
-
-
Method Detail
-
getAllTypes
public static Collection<ServiceType> getAllTypes()
Get all ServiceType objects- Returns:
- all ServiceType objects
-
findType
public static ServiceType findType(String name)
Return the known ServiceType that matches the given name (ignoring case) or null if the name is unknown.- Parameters:
name- name of the desired ServiceType.- Returns:
- ServiceType or null if no match.
-
getType
public static ServiceType getType(String name)
Return a ServiceType that matches the given name by either matching a known type (ignoring case) or creating an unknown type.- Parameters:
name- name of the desired ServiceType- Returns:
- the named ServiceType or null if given name is null.
-
hashCode
public int hashCode()
Override Object.hashCode() to be consistent with this equals.
-
-