Package dap4.core.dmr
Class DapGroup
- java.lang.Object
-
- dap4.core.dmr.DapNode
-
- dap4.core.dmr.DapGroup
-
- All Implemented Interfaces:
DapDecl
- Direct Known Subclasses:
DapDataset
public class DapGroup extends DapNode implements DapDecl
This class defines a non-groupd group: i.e. one with an atomic type.
-
-
Field Summary
Fields Modifier and Type Field Description protected List<DapStructure>
compounds
protected List<DapNode>
decls
protected List<DapDimension>
dimensions
protected List<DapEnumeration>
enums
protected List<DapGroup>
groups
protected List<DapVariable>
variables
-
Fields inherited from class dap4.core.dmr.DapNode
annotations, attributes, dataset, escapedname, fqn, index, parent, shortname, sort, xmlattributes
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDecl(DapNode newdecl)
Add single declarationboolean
containsDecl(DapNode decl)
DapNode
findByFQN(String fqn, DapSort... sortset)
Parse an FQN and use it to trace to a specific object in a dataset.DapNode
findByName(String name, DapSort... sortset)
DapNode
findInGroup(String name, DapSort... sortset)
DapVariable
findVariable(String name)
Locate a variable in this groupList<DapStructure>
getCompounds()
List<DapNode>
getDecls()
List<DapDimension>
getDimensions()
List<DapEnumeration>
getEnums()
List<DapGroup>
getGroups()
List<DapVariable>
getVariables()
void
setDecls(List<? extends DapNode> decls)
-
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, toString
-
-
-
-
Field Detail
-
enums
protected List<DapEnumeration> enums
-
dimensions
protected List<DapDimension> dimensions
-
variables
protected List<DapVariable> variables
-
compounds
protected List<DapStructure> compounds
-
-
Constructor Detail
-
DapGroup
public DapGroup()
-
DapGroup
public DapGroup(String name)
-
-
Method Detail
-
setDecls
public void setDecls(List<? extends DapNode> decls) throws DapException
- Throws:
DapException
-
addDecl
public void addDecl(DapNode newdecl) throws DapException
Add single declaration- Throws:
DapException
-
getEnums
public List<DapEnumeration> getEnums()
-
getCompounds
public List<DapStructure> getCompounds()
-
getDimensions
public List<DapDimension> getDimensions()
-
getVariables
public List<DapVariable> getVariables()
-
containsDecl
public boolean containsDecl(DapNode decl)
-
findByFQN
public DapNode findByFQN(String fqn, DapSort... sortset) throws DapException
Parse an FQN and use it to trace to a specific object in a dataset. Absolute FQN paths are passed to DapDataset.findByFQN(). Relative FQNs are assumed to be WRT to the FQN of this node- Parameters:
fqn
- the fully qualified namesortset
- the kinds of object we are looking for- Returns:
- the matching Dap Node or null if not found
- Throws:
DapException
-
findVariable
public DapVariable findVariable(String name)
Locate a variable in this group- Parameters:
name
- the variable's name- Returns:
- the matching Dap Node or null if not found
-
-