@Immutable public class EnumTypedef extends CDMNode
Constructor and Description |
---|
EnumTypedef(String name,
Map<Integer,String> map) |
EnumTypedef(String name,
Map<Integer,String> map,
DataType basetype) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
DataType |
getBaseType() |
List<String> |
getEnumStrings() |
Map<Integer,String> |
getMap() |
int |
hashCode() |
boolean |
inRange(int i) |
String |
lookupEnumString(int e) |
void |
setBaseType(DataType basetype) |
String |
toString() |
boolean |
validateMap(Map<Integer,String> map,
DataType basetype) |
String |
writeCDL(boolean strict)
String representation.
|
protected void |
writeCDL(Formatter out,
Indent indent,
boolean strict) |
getDODSName, getFullName, getFullNameEscaped, getGroup, getImmutable, getName, getParentGroup, getParentStructure, getShortName, getSort, isMemberOfStructure, setDODSName, setImmutable, setParentGroup, setParentStructure, setShortName, setSort
public DataType getBaseType()
public void setBaseType(DataType basetype)
public boolean inRange(int i)
public String lookupEnumString(int e)
public String writeCDL(boolean strict)
strict
- if true, write in strict adherence to CDL definition.Copyright © 1999–2014 UCAR/Unidata. All rights reserved.