| Modifier and Type | Field and Description |
|---|---|
protected dap4.core.util.DapContext |
context |
protected dap4.core.dmr.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 dap4.core.data.DataDataset |
getDataDataset() |
dap4.core.dmr.DapDataset |
getDMR() |
java.lang.String |
getPath() |
DSP |
open(java.lang.String path) |
abstract DSP |
open(java.lang.String path,
dap4.core.util.DapContext context) |
protected dap4.core.dmr.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(dap4.core.dmr.DapDataset dataset)
Walk the dataset tree and remove selected attributes
such as _Unsigned
|
protected void |
setContext(dap4.core.util.DapContext context) |
protected void |
setDataset(dap4.core.dmr.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 dap4.core.util.DapContext context
protected dap4.core.dmr.DapDataset dmr
protected java.lang.String path
public abstract DSP open(java.lang.String path, dap4.core.util.DapContext context) throws dap4.core.util.DapException
public abstract dap4.core.data.DataDataset getDataDataset()
getDataDataset in interface DSPpublic DSP open(java.lang.String path) throws dap4.core.util.DapException
public java.lang.Object getContext()
getContext in interface DSPprotected void setContext(dap4.core.util.DapContext context)
protected void setRequestResponse()
protected void setDataset(dap4.core.dmr.DapDataset dataset)
throws dap4.core.util.DapException
dap4.core.util.DapExceptionpublic void setPath(java.lang.String path)
throws dap4.core.util.DapException
dap4.core.util.DapExceptionprotected dap4.core.dmr.DapDataset parseDMR(java.lang.String document)
throws dap4.core.util.DapException
document - the dmr to parsedap4.core.util.DapException - on parse errorsprotected void processAttributes(dap4.core.dmr.DapDataset dataset)
throws dap4.core.util.DapException
dataset - dap4.core.util.DapExceptionprotected boolean suppress(java.lang.String attrname)
attrname - A non-escaped attribute name to be tested for suppression