|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdods.dap.BaseType
dods.dap.DConstructor
public abstract class DConstructor
Contains methods used only by the DODS constructor classes
(DStructure
, DSequence
, DGrid
, and
DList
).
DStructure
,
DSequence
,
DGrid
,
DList
Constructor Summary | |
---|---|
DConstructor()
Constructs a new DConstructor . |
|
DConstructor(java.lang.String n)
Constructs a new DConstructor with the given name. |
Method Summary | |
---|---|
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. |
Methods inherited from class dods.dap.BaseType |
---|
checkSemantics, checkSemantics, clone, elementCount, elementCount, getLongName, getName, getParent, getTypeName, newPrimitiveVector, printDecl, printDecl, printDecl, printDecl, printDecl, printDecl, printDecl, printDecl, printVal, printVal, printVal, printVal, setName, setParent |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DConstructor()
DConstructor
.
public DConstructor(java.lang.String n)
DConstructor
with the given name.
n
- The name of the variable.Method Detail |
---|
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |