|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectopendap.dap.DAPNode
public class DAPNode
The DAPNode class is the common parent type for all nodes in the DDS and the DAS. It is used to manage the following elements. 1. Names - both encoded and clear 2. Cloning - it implements the single clone procedure and converts it to calls to cloneDAG. 3. Parent - this was moved here from BaseType because it (should) represent the only cyclic pointer in the tree. 4. projection - this really only for server nodes. it should be removed when we quit using cloning.
Nested Class Summary | |
---|---|
static class |
DAPNode.CloneMap
Clone interface. |
Field Summary | |
---|---|
protected String |
_name
The name of this variable - not www enccoded |
protected String |
_nameEncoded
|
Constructor Summary | |
---|---|
DAPNode()
Constructs a new DAPNode with no name. |
|
DAPNode(String n)
Constructs a new DAPNode with name n . |
Method Summary | |
---|---|
Object |
clone()
Returns a clone of this DAPNode . |
DAPNode |
cloneDAG(DAPNode.CloneMap map)
This procedure does the actual recursive clone. |
static DAPNode |
cloneDAG(DAPNode.CloneMap map,
DAPNode src)
This version of cloneDAG() is the primary point of cloning. |
String |
getClearName()
Returns the unencoded name of the class instance. |
String |
getEncodedName()
Returns the WWW encoded name of the class instance. |
DAPNode |
getParent()
|
boolean |
isProject()
Check the projection state of this variable. |
void |
setClearName(String n)
Sets the unencoded name of the class instance. |
void |
setEncodedName(String n)
Sets the name of the class instance. |
void |
setParent(DAPNode bt)
|
void |
setProject(boolean state)
Set the state of this variable's projection. |
void |
setProject(boolean state,
boolean all)
Set the state of this variable's projection. |
void |
setProjected(boolean tf)
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String _name
protected String _nameEncoded
Constructor Detail |
---|
public DAPNode()
DAPNode
with no name.
public DAPNode(String n)
DAPNode
with name n
.
Name is assumed to never be DAP encoded
n
- the name of the variable.Method Detail |
---|
public void setProjected(boolean tf)
public boolean isProject()
true
, otherwise it
should return false
.
true
if the variable is part of the current
projections, false
otherwise.CEEvaluator
public void setProject(boolean state, boolean all)
true
means
that this variable is part of the current projection as defined by
the current constraint expression, otherwise the current projection
for this variable should be false
.
state
- true
if the variable is part of the current
projection, false
otherwise.all
- If true
, set the Project property of all the
members (and their children, and so on).CEEvaluator
public void setProject(boolean state)
true
means
that this variable is part of the current projection as defined by
the current constraint expression, otherwise the current projection
for this variable should be false
.
This is equivalent to setProjection(state
,
true
).
state
- true
if the variable is part of the current
projection, false
otherwise.CEEvaluator
public void setParent(DAPNode bt)
public DAPNode getParent()
public final String getClearName()
public final String getEncodedName()
public final void setEncodedName(String n)
n
- the name of the class instance; with escapespublic void setClearName(String n)
n
- the unencoded name of the class instance.public Object clone()
DAPNode
. A deep copy is performed
on all data inside the variable.
clone
in class Object
DAPNode
.public static DAPNode cloneDAG(DAPNode.CloneMap map, DAPNode src) throws CloneNotSupportedException
map
- list of previously cloned nodes
CloneNotSupportedException
public DAPNode cloneDAG(DAPNode.CloneMap map) throws CloneNotSupportedException
map
- list of previously cloned nodes
CloneNotSupportedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |