ucar.nc2
Class EnumTypedef
java.lang.Object
ucar.nc2.EnumTypedef
public class EnumTypedef
- extends java.lang.Object
Enumeration Typedef map integers to Strings.
For ENUM1, ENUM2, ENUM4 enumeration types.
- Author:
- caron
Constructor Summary |
EnumTypedef(java.lang.String name,
java.util.Map<java.lang.Integer,java.lang.String> map)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EnumTypedef
public EnumTypedef(java.lang.String name,
java.util.Map<java.lang.Integer,java.lang.String> map)
getName
public java.lang.String getName()
getShortName
public java.lang.String getShortName()
getEnumStrings
public java.util.List<java.lang.String> getEnumStrings()
lookupEnumString
public java.lang.String lookupEnumString(int e)
writeCDL
public java.lang.String writeCDL(boolean strict)
- String representation.
- Parameters:
strict
- if true, write in strict adherence to CDL definition.
- Returns:
- CDL representation.