opendap.dap
public abstract class DConstructor extends BaseType
DStructure
, DSequence
, DGrid
, and
DList
).DStructure
,
DSequence
,
DGrid
,
Serialized FormConstructor and Description |
---|
DConstructor()
Constructs a new
DConstructor . |
DConstructor(java.lang.String n)
Constructs a new
DConstructor with the given name. |
Modifier and Type | Method and Description |
---|---|
void |
addVariable(BaseType v)
Adds a variable to the container.
|
abstract void |
addVariable(BaseType v,
int part)
Adds a variable to the container.
|
abstract BaseType |
getVar(int index)
Gets the indexed variable.
|
abstract BaseType |
getVariable(java.lang.String name)
Gets the named variable.
|
abstract java.util.Enumeration |
getVariables()
Return an Enumeration that can be used to iterate over all of the
members of the class.
|
void |
printXML(java.io.PrintWriter pw,
java.lang.String pad,
boolean constrained) |
protected boolean |
someChildHasAttributes(BaseType bt) |
addAttributeAlias, addAttributeContainer, appendAttribute, appendAttribute, appendAttributeContainer, checkSemantics, checkSemantics, clone, delAttribute, delAttribute, elementCount, elementCount, getAttribute, getAttribute, getAttributeNames, getAttributeTable, getClearName, getLongName, getName, getParent, getTypeName, hasAttributes, newPrimitiveVector, printAttributes, printAttributes, printAttributes, printAttributes, printDecl, printDecl, printDecl, printDecl, printDecl, printDecl, printDecl, printDecl, printVal, printVal, printVal, printVal, printXML, printXML, printXML, printXML, setClearName, setName, setParent
public DConstructor()
DConstructor
.public DConstructor(java.lang.String n)
DConstructor
with the given name.n
- The name of the variable.public abstract void addVariable(BaseType v, int part)
v
- the variable to add.part
- The part of the constructor data to be modified.public final void addVariable(BaseType v)
addVariable(v, 0)
.v
- the variable to add.public abstract BaseType getVariable(java.lang.String name) throws NoSuchVariableException
name
- the name of the variable.NoSuchVariableException
- if the named variable does not
exist in this container.public abstract BaseType getVar(int index) throws NoSuchVariableException
DArray
and
indexes 1 and higher return the associated map Vector
s.index
- the index of the variable in the Vector
Vars.NoSuchVariableException
- if the named variable does not
exist in this container.public abstract java.util.Enumeration getVariables()
protected boolean someChildHasAttributes(BaseType bt)
bt
- The BasType object to search.This class/method is associated with pre-release version of the DDX API. It is experimental and is subject to (significant) change.
public void printXML(java.io.PrintWriter pw, java.lang.String pad, boolean constrained)
printXML
in class BaseType
pw
- Where to printpad
- Padding for iondentation (makes the output easier for humans
to read).constrained
- If true then only projected variables (and their
Attributes) will be printed.This class/method is associated with pre-release version of the DDX API. It is experimental and is subject to (significant) change.