|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectopendap.dap.DAPNode
opendap.dap.BaseType
opendap.dap.DConstructor
public abstract class DConstructor
Contains methods used only by the OPeNDAP constructor classes
(DStructure, DSequence, DGrid, and
DList).
DStructure,
DSequence,
DGrid,
Serialized Form| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class opendap.dap.DAPNode |
|---|
DAPNode.CloneMap |
| Field Summary |
|---|
| Fields inherited from class opendap.dap.DAPNode |
|---|
_name, _nameEncoded |
| Constructor Summary | |
|---|---|
DConstructor()
Constructs a new DConstructor. |
|
DConstructor(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 int |
getVarCount()
Get the number of contained variables (for use with getVar() |
abstract BaseType |
getVariable(String name)
Gets the named variable. |
abstract Enumeration |
getVariables()
Return an Enumeration that can be used to iterate over all of the members of the class. |
void |
printXML(PrintWriter pw,
String pad,
boolean constrained)
|
protected boolean |
someChildHasAttributes(BaseType bt)
|
| Methods inherited from class opendap.dap.DAPNode |
|---|
clone, cloneDAG, getClearName, getEncodedName, getParent, isProject, setEncodedName, setParent, setProject, setProject, setProjected |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DConstructor()
DConstructor.
public DConstructor(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(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 Vectors.
index - the index of the variable in the Vector Vars.
NoSuchVariableException - if the named variable does not
exist in this container.public abstract int getVarCount()
public abstract Enumeration getVariables()
protected boolean someChildHasAttributes(BaseType bt)
bt - The BasType object to search.
public void printXML(PrintWriter pw,
String pad,
boolean constrained)
printXML in class BaseTypepw - 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||