@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(java.lang.String name,
java.util.Map<java.lang.Integer,java.lang.String> map) |
EnumTypedef(java.lang.String name,
java.util.Map<java.lang.Integer,java.lang.String> map,
DataType basetype) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
DataType |
getBaseType() |
java.util.List<java.lang.String> |
getEnumStrings() |
java.util.Map<java.lang.Integer,java.lang.String> |
getMap() |
int |
hashCode() |
void |
hashCodeShow(Indent indent) |
java.lang.String |
lookupEnumString(int e) |
java.lang.String |
toString() |
boolean |
validateMap(java.util.Map<java.lang.Integer,java.lang.String> map,
DataType basetype) |
java.lang.String |
writeCDL(boolean strict)
String representation.
|
protected void |
writeCDL(java.util.Formatter out,
Indent indent,
boolean strict) |
annotate, getAnnotation, getAnnotations, 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 EnumTypedef(java.lang.String name, java.util.Map<java.lang.Integer,java.lang.String> map)
public EnumTypedef(java.lang.String name, java.util.Map<java.lang.Integer,java.lang.String> map, DataType basetype)
public java.util.List<java.lang.String> getEnumStrings()
public java.util.Map<java.lang.Integer,java.lang.String> getMap()
public DataType getBaseType()
public boolean validateMap(java.util.Map<java.lang.Integer,java.lang.String> map, DataType basetype)
public java.lang.String lookupEnumString(int e)
public java.lang.String writeCDL(boolean strict)
strict
- if true, write in strict adherence to CDL definition.protected void writeCDL(java.util.Formatter out, Indent indent, boolean strict)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void hashCodeShow(Indent indent)
hashCodeShow
in class CDMNode
public java.lang.String toString()
toString
in class java.lang.Object