thredds.catalog
Class MetadataType

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

public final class MetadataType
extends java.lang.Object

Type-safe enumeration of THREDDS Metadata types.

Author:
john caron

Field Summary
static MetadataType ADN
           
static MetadataType AGGREGATION
           
static MetadataType CATALOG_GEN_CONFIG
           
static MetadataType DIF
           
static MetadataType DUBLIN_CORE
           
static MetadataType ESG
           
static MetadataType FGDC
           
static MetadataType LAS
           
static MetadataType NcML
           
static MetadataType NETCDF
           
static MetadataType NONE
           
static MetadataType THREDDS
           
static MetadataType THREDDS_DLCollection
           
static MetadataType THREDDS_DLEntry
           
 
Method Summary
 boolean equals(java.lang.Object o)
          MetaDataType with same name are equal.
static MetadataType findType(java.lang.String name)
          Return the known MetadataType that matches the given name (ignoring case) or null if the name is unknown.
static java.util.Collection<MetadataType> getAllTypes()
          Get all MetadataType objects
static MetadataType getType(java.lang.String name)
          Return a MetadataType 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.
 java.lang.String toString()
          Return the MetadataType name.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NONE

public static final MetadataType NONE

THREDDS

public static final MetadataType THREDDS

ADN

public static final MetadataType ADN

AGGREGATION

public static final MetadataType AGGREGATION

CATALOG_GEN_CONFIG

public static final MetadataType CATALOG_GEN_CONFIG

DUBLIN_CORE

public static final MetadataType DUBLIN_CORE

DIF

public static final MetadataType DIF

FGDC

public static final MetadataType FGDC

LAS

public static final MetadataType LAS

ESG

public static final MetadataType ESG

NETCDF

public static final MetadataType NETCDF

NcML

public static final MetadataType NcML

THREDDS_DLEntry

public static final MetadataType THREDDS_DLEntry

THREDDS_DLCollection

public static final MetadataType THREDDS_DLCollection
Method Detail

getAllTypes

public static java.util.Collection<MetadataType> getAllTypes()
Get all MetadataType objects

Returns:
all MetadataType objects

findType

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

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

getType

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

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

toString

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

Overrides:
equals in class java.lang.Object