ucar.nc2
Class EnumTypedef

java.lang.Object
  extended by ucar.nc2.EnumTypedef

@Immutable
public class EnumTypedef
extends Object

Enumeration Typedef map integers to Strings. For ENUM1, ENUM2, ENUM4 enumeration types. Immutable.

Author:
caron

Constructor Summary
EnumTypedef(String name, Map<Integer,String> map)
           
 
Method Summary
 List<String> getEnumStrings()
           
 Map<Integer,String> getMap()
           
 String getName()
           
 String getShortName()
           
 String lookupEnumString(int e)
           
 String writeCDL(boolean strict)
          String representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnumTypedef

public EnumTypedef(String name,
                   Map<Integer,String> map)
Method Detail

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.