Package thredds.catalog
Class MetadataType
- java.lang.Object
-
- thredds.catalog.MetadataType
-
public final class MetadataType extends Object
Type-safe enumeration of THREDDS Metadata types.
-
-
Field Summary
Fields Modifier and Type Field Description 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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
MetaDataType with same name are equal.static MetadataType
findType(String name)
Return the known MetadataType that matches the given name (ignoring case) or null if the name is unknown.static Collection<MetadataType>
getAllTypes()
Get all MetadataType objectsstatic MetadataType
getType(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.String
toString()
Return the MetadataType name.
-
-
-
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 Collection<MetadataType> getAllTypes()
Get all MetadataType objects- Returns:
- all MetadataType objects
-
findType
public static MetadataType findType(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(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.
-
hashCode
public int hashCode()
Override Object.hashCode() to be consistent with this equals.
-
-