Modifier and Type | Field and Description |
---|---|
protected DapContext |
context |
protected DapDataset |
dmr |
protected static boolean |
PARSEDEBUG |
protected java.lang.String |
path |
Constructor and Description |
---|
AbstractDSP() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getContext() |
abstract DataDataset |
getDataDataset() |
DapDataset |
getDMR() |
java.lang.String |
getPath() |
DSP |
open(java.lang.String path) |
abstract DSP |
open(java.lang.String path,
DapContext context) |
protected DapDataset |
parseDMR(java.lang.String document)
It is common to want to parse a DMR text to a DapDataset,
so provide this utility.
|
protected void |
processAttributes(DapDataset dataset)
Walk the dataset tree and remove selected attributes
such as _Unsigned
|
protected void |
setContext(DapContext context) |
protected void |
setDataset(DapDataset dataset) |
void |
setPath(java.lang.String path) |
protected void |
setRequestResponse() |
protected boolean |
suppress(java.lang.String attrname)
Some attributes that are added by the NetcdfDataset
need to be kept out of the DMR.
|
protected static final boolean PARSEDEBUG
protected DapContext context
protected DapDataset dmr
protected java.lang.String path
public abstract DSP open(java.lang.String path, DapContext context) throws DapException
open
in interface DSP
DapException
public abstract DataDataset getDataDataset()
getDataDataset
in interface DSP
public DSP open(java.lang.String path) throws DapException
open
in interface DSP
DapException
public java.lang.Object getContext()
getContext
in interface DSP
public DapDataset getDMR()
protected void setContext(DapContext context)
protected void setRequestResponse()
protected void setDataset(DapDataset dataset) throws DapException
DapException
public void setPath(java.lang.String path) throws DapException
DapException
protected DapDataset parseDMR(java.lang.String document) throws DapException
document
- the dmr to parseDapException
- on parse errorsprotected void processAttributes(DapDataset dataset) throws DapException
dataset
- DapException
protected boolean suppress(java.lang.String attrname)
attrname
- A non-escaped attribute name to be tested for suppression