Modifier and Type | Field and Description |
---|---|
protected DapType |
basetype |
static DapType |
DEFAULTBASETYPE |
protected java.util.Map<java.lang.String,java.lang.Long> |
namemap |
protected java.util.List<java.lang.String> |
names
The enumeration constants are represented by
a List of names since order is important at least for printing,
and a pair of maps.
|
protected java.util.Map<java.lang.Long,java.lang.String> |
valuemap |
CHAR, ENUM, FLOAT32, FLOAT64, INT16, INT32, INT64, INT8, OPAQUE, SEQ, STRING, STRUCT, typesort, UINT16, UINT32, UINT64, UINT8, URL
attributes, dataset, escapedname, fqn, index, parent, shortname, sort
Constructor and Description |
---|
DapEnum(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
addEnumConst(java.lang.String name,
java.lang.Long value) |
DapType |
getBaseType() |
java.util.List<java.lang.String> |
getNames() |
java.lang.String |
lookup(long value) |
java.lang.Long |
lookup(java.lang.String name) |
void |
setBaseType(DapType basetype) |
getAtomicType, getEnumList, getPrimitiveType, getSize, getTypeMap, getTypeName, isCharType, isCompound, isEnumType, isFixedSize, isFloatType, isIntegerType, isLegalAttrType, isNumericType, isOpaqueType, isStringType, isStructType, isUnsigned, lookup, reify, setAtomicType
addAttribute, findAttribute, getAttributes, getContainer, getContainerPath, getDataset, getEscapedShortName, getFQN, getGroup, getGroupPath, getIndex, getParent, getPath, getShortName, getSort, isTopLevel, removeAttribute, setAttribute, setAttributes, setDataset, setIndex, setParent, setShortName, setSort, toString
public static final DapType DEFAULTBASETYPE
protected DapType basetype
protected java.util.List<java.lang.String> names
protected java.util.Map<java.lang.String,java.lang.Long> namemap
protected java.util.Map<java.lang.Long,java.lang.String> valuemap
public DapType getBaseType()
public void setBaseType(DapType basetype) throws DapException
DapException
public void addEnumConst(java.lang.String name, java.lang.Long value) throws DapException
DapException
public java.util.List<java.lang.String> getNames()
public java.lang.Long lookup(java.lang.String name)
public java.lang.String lookup(long value)