ucar.nc2
Class EnumTypedef
java.lang.Object
ucar.nc2.EnumTypedef
@Immutable
public class EnumTypedef
- extends Object
Enumeration Typedef map integers to Strings.
For ENUM1, ENUM2, ENUM4 enumeration types.
Immutable.
- Author:
- caron
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EnumTypedef
public EnumTypedef(String name,
Map<Integer,String> map)
getName
public String getName()
getShortName
public String getShortName()
getEnumStrings
public List<String> getEnumStrings()
getMap
public Map<Integer,String> getMap()
lookupEnumString
public String lookupEnumString(int e)
writeCDL
public String writeCDL(boolean strict)
- String representation.
- Parameters:
strict
- if true, write in strict adherence to CDL definition.
- Returns:
- CDL representation.
Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.