Package dap4.core.dmr
Class DapVariable
- java.lang.Object
-
- dap4.core.dmr.DapNode
-
- dap4.core.dmr.DapVariable
-
-
Field Summary
Fields Modifier and Type Field Description protected DapAttribute
attributechecksum
protected DapType
basetype
protected List<DapDimension>
dimensions
protected int
fieldindex
protected List<DapMap>
maps
-
Fields inherited from class dap4.core.dmr.DapNode
annotations, attributes, dataset, escapedname, fqn, index, parent, shortname, sort, xmlattributes
-
-
Constructor Summary
Constructors Constructor Description DapVariable()
DapVariable(String name)
DapVariable(String name, DapType basetype)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDimension(DapDimension node)
void
addMap(DapMap map)
DapType
getBaseType()
DapAttribute
getChecksumAttribute()
long
getCount()
DapDimension
getDimension(int i)
List<DapDimension>
getDimensions()
int
getFieldIndex()
List<DapMap>
getMaps()
int
getRank()
DapType
getTrueBaseType()
boolean
isAtomic()
boolean
isCompound()
boolean
isEnum()
boolean
isLeaf()
boolean
isSequence()
boolean
isStructure()
void
setAttributeChecksum(DapAttribute csum)
DapVariable
setBaseType(DapType t)
void
setFieldIndex(int index)
String
toString()
-
Methods inherited from class dap4.core.dmr.DapNode
addAttribute, addXMLAttribute, annotate, annotation, computefqn, findAttribute, getAttributes, getContainer, getContainerPath, getDataset, getEscapedShortName, getFQN, getGroup, getGroupPath, getIndex, getParent, getPath, getShortName, getSort, getXMLAttributes, isTopLevel, overrideParent, removeAttribute, removeXMLAttribute, setAttribute, setAttributes, setDataset, setIndex, setParent, setShortName, setSort
-
-
-
-
Field Detail
-
basetype
protected DapType basetype
-
dimensions
protected List<DapDimension> dimensions
-
attributechecksum
protected DapAttribute attributechecksum
-
fieldindex
protected int fieldindex
-
-
Method Detail
-
getBaseType
public DapType getBaseType()
-
setBaseType
public DapVariable setBaseType(DapType t)
-
getRank
public int getRank()
-
getCount
public long getCount()
-
getDimensions
public List<DapDimension> getDimensions()
-
getDimension
public DapDimension getDimension(int i)
-
addDimension
public void addDimension(DapDimension node) throws DapException
- Throws:
DapException
-
addMap
public void addMap(DapMap map) throws DapException
- Throws:
DapException
-
getChecksumAttribute
public DapAttribute getChecksumAttribute()
-
setAttributeChecksum
public void setAttributeChecksum(DapAttribute csum)
-
getFieldIndex
public int getFieldIndex()
-
setFieldIndex
public void setFieldIndex(int index)
-
getTrueBaseType
public DapType getTrueBaseType()
-
isLeaf
public boolean isLeaf()
-
isAtomic
public boolean isAtomic()
-
isEnum
public boolean isEnum()
-
isSequence
public boolean isSequence()
-
isStructure
public boolean isStructure()
-
isCompound
public boolean isCompound()
-
-