Package ucar.nc2
Class EnumTypedef
java.lang.Object
ucar.nc2.CDMNode
ucar.nc2.EnumTypedef
A named map from integers to Strings; a user-defined Enum used as a Variable's data type.
For ENUM1, ENUM2, ENUM4 enumeration types.
Immutable.
TODO EnumTypedef will not extend CDMNode in 6.
TODO EnumTypedef will not have a reference to its owning Group in 6.
TODO EnumTypedef.getFullName() will not exist in 6.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanOne of DataType.ENUM1, DataType.ENUM2, or DataType.ENUM4.com.google.common.collect.ImmutableList<String>Deprecated.use getMap()getMap()inthashCode()lookupEnumInt(String name) Get the enum value corresponding to the name.lookupEnumString(int e) Get the name corresponding to the enum value.toString()writeCDL(boolean strict) Deprecated.use CDLWriterMethods inherited from class ucar.nc2.CDMNode
annotate, annotation, getDODSName, getFullName, getFullNameEscaped, getGroup, getImmutable, getName, getParentGroup, getParentStructure, getShortName, getSort, isMemberOfStructure, localhash, setDODSName, setImmutable, setParentGroup, setParentStructure, setShortName, setSort, unwrap
-
Constructor Details
-
EnumTypedef
Make an EnumTypedef with base type ENUM4. -
EnumTypedef
Make an EnumTypedef setting the base type (must be ENUM1, ENUM2, ENUM4).
-
-
Method Details
-
getEnumStrings
Deprecated.use getMap() -
getMap
-
getBaseType
One of DataType.ENUM1, DataType.ENUM2, or DataType.ENUM4. -
lookupEnumString
Get the name corresponding to the enum value. -
lookupEnumInt
Get the enum value corresponding to the name. -
writeCDL
Deprecated.use CDLWriterCDL string representation.- Parameters:
strict- if true, write in strict adherence to CDL definition.- Returns:
- CDL representation.
-
equals
-
equalsMapOnly
-
hashCode
public int hashCode() -
toString
-