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 MetadataTypeADNstatic MetadataTypeAGGREGATIONstatic MetadataTypeCATALOG_GEN_CONFIGstatic MetadataTypeDIFstatic MetadataTypeDUBLIN_COREstatic MetadataTypeESGstatic MetadataTypeFGDCstatic MetadataTypeLASstatic MetadataTypeNcMLstatic MetadataTypeNETCDFstatic MetadataTypeNONEstatic MetadataTypeTHREDDSstatic MetadataTypeTHREDDS_DLCollectionstatic MetadataTypeTHREDDS_DLEntry
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)MetaDataType with same name are equal.static MetadataTypefindType(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 MetadataTypegetType(String name)Return a MetadataType 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 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.
-
-