| Modifier and Type | Field and Description |
|---|---|
protected DapType |
basetype |
static DapType |
DEFAULTBASETYPE |
protected Map<String,Long> |
namemap |
protected List<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 Map<Long,String> |
valuemap |
CHAR, ENUM, FLOAT32, FLOAT64, INT16, INT32, INT64, INT8, OPAQUE, SEQ, STRING, STRUCT, typesort, UINT16, UINT32, UINT64, UINT8, URLattributes, dataset, escapedname, fqn, index, parent, shortname, sort| Modifier and Type | Method and Description |
|---|---|
void |
addEnumConst(String name,
Long value) |
DapType |
getBaseType() |
List<String> |
getNames() |
String |
lookup(long value) |
Long |
lookup(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, setAtomicTypeaddAttribute, findAttribute, getAttributes, getContainer, getContainerPath, getDataset, getEscapedShortName, getFQN, getGroup, getGroupPath, getIndex, getParent, getPath, getShortName, getSort, isTopLevel, removeAttribute, setAttribute, setAttributes, setDataset, setIndex, setParent, setShortName, setSort, toStringpublic static final DapType DEFAULTBASETYPE
protected DapType basetype
protected List<String> names
public DapEnum(String name)
public DapType getBaseType()
public void setBaseType(DapType basetype) throws DapException
DapExceptionpublic void addEnumConst(String name, Long value) throws DapException
DapExceptionpublic String lookup(long value)
Copyright © 1999–2015 UCAR/Unidata. All rights reserved.