@Immutable public class EnumTypedef extends CDMNode
Modifier and Type | Field and Description |
---|---|
static int |
UBYTE_MAX |
static int |
USHORT_MAX |
annotations, dodsname, group, immutable, parentstruct, shortName, sort
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() |
void |
hashCodeShow(Indent indent) |
Integer |
lookupEnumInt(String name) |
String |
lookupEnumString(int e) |
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) |
annotate, annotation, getDODSName, getFullName, getFullNameEscaped, getGroup, getImmutable, getName, getParentGroup, getParentStructure, getShortName, getSort, isMemberOfStructure, localhash, setDODSName, setImmutable, setParentGroup, setParentStructure, setShortName, setSort, unwrap
public static final int UBYTE_MAX
public static final int USHORT_MAX
public DataType getBaseType()
public String lookupEnumString(int e)
public String writeCDL(boolean strict)
strict
- if true, write in strict adherence to CDL definition.public void hashCodeShow(Indent indent)
hashCodeShow
in class CDMNode