thredds.catalog
Class CollectionType

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

public final class CollectionType
extends java.lang.Object

Type-safe enumeration of THREDDS coherent collection types.

Version:
$Revision: 48 $ $Date: 2006-07-12 16:15:40Z $
Author:
john caron

Field Summary
static CollectionType FORECASTS
           
static CollectionType NONE
           
static CollectionType STATIONS
           
static CollectionType TIMESERIES
           
 
Constructor Summary
CollectionType(java.lang.String s)
           
 
Method Summary
 boolean equals(java.lang.Object o)
          CollectionType with same name are equal.
static java.util.Collection getAllTypes()
          Return all CollectionType objects
static CollectionType getType(java.lang.String name)
          Find the CollectionType that matches this name, ignore case.
 int hashCode()
          Override Object.hashCode() to be consistent with this equals.
 java.lang.String toString()
          Return the collection name.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NONE

public static final CollectionType NONE

TIMESERIES

public static final CollectionType TIMESERIES

STATIONS

public static final CollectionType STATIONS

FORECASTS

public static final CollectionType FORECASTS
Constructor Detail

CollectionType

public CollectionType(java.lang.String s)
Method Detail

getAllTypes

public static java.util.Collection getAllTypes()
Return all CollectionType objects


getType

public static CollectionType getType(java.lang.String name)
Find the CollectionType that matches this name, ignore case.

Parameters:
name - : match this name
Returns:
CollectionType or null if no match.

toString

public java.lang.String toString()
Return the collection 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)
CollectionType with same name are equal.

Overrides:
equals in class java.lang.Object