Package ucar.nc2
Class EnumTypedef
java.lang.Object
ucar.nc2.CDMNode
ucar.nc2.EnumTypedef
@Immutable
public class EnumTypedef
extends ucar.nc2.CDMNode
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.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()Methods inherited from class ucar.nc2.CDMNode
getShortName
-
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
-
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. -
equals
-
equalsMapOnly
-
hashCode
public int hashCode() -
toString
-