thredds.catalog
Class ServiceType

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

public final class ServiceType
extends Object

Type-safe enumeration of THREDDS Service types.

Author:
john caron

Field Summary
static ServiceType ADDE
           
static ServiceType CATALOG
           
static ServiceType CdmRemote
           
static ServiceType CdmrFeature
           
static ServiceType COMPOUND
           
static ServiceType DODS
           
static ServiceType FILE
           
static ServiceType FTP
           
static ServiceType GRIDFTP
           
static ServiceType HTTP
           
static ServiceType HTTPServer
           
static ServiceType ISO
           
static ServiceType LAS
           
static ServiceType NCML
           
static ServiceType NETCDF
           
static ServiceType NetcdfServer
           
static ServiceType NetcdfSubset
           
static ServiceType NONE
           
static ServiceType OPENDAP
           
static ServiceType OPENDAPG
           
static ServiceType QC
           
static ServiceType RESOLVER
           
static ServiceType THREDDS
           
static ServiceType UDDC
           
static ServiceType WCS
           
static ServiceType WebForm
           
static ServiceType WFS
           
static ServiceType WMS
           
static ServiceType WSDL
           
 
Method Summary
 boolean equals(Object o)
          ServiceType with same name are equal.
static ServiceType findType(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 objects
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.
 int hashCode()
          Override Object.hashCode() to be consistent with this equals.
 String toString()
          Return the ServiceType name.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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

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

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.

toString

public String toString()
Return the ServiceType name.

Overrides:
toString in class Object

hashCode

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

Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
ServiceType with same name are equal.

Overrides:
equals in class Object


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.