|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.core.Context
public final class Context
This class stores the reference to the currently opened database. Moreover, it provides references to the currently used, marked and copied node sets.
Constructor Summary | |
---|---|
Context()
Constructor. |
Method Summary | |
---|---|
boolean |
close()
Closes the database instance. |
Nodes |
copied()
Returns the copied context set. |
void |
copy(Nodes copy)
Sets the current node set as copy. |
Nodes |
current()
Returns the current context set. |
void |
current(Nodes curr)
Sets the current context set. |
Data |
data()
Returns data reference. |
void |
data(Data d)
Sets a new data instance. |
boolean |
db()
Returns true if a data reference has been set. |
void |
flush()
Flushes the context (i.e., updates references). |
Nodes |
marked()
Returns the marked context set. |
void |
marked(Nodes mark)
Sets the marked context set. |
boolean |
root()
Returns true if all current nodes refer to document nodes. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Context()
Method Detail |
---|
public boolean db()
public boolean root()
public Data data()
public void data(Data d)
d
- data referencepublic void flush()
public boolean close()
public Nodes current()
public void current(Nodes curr)
curr
- current context setpublic Nodes copied()
public void copy(Nodes copy)
copy
- current node set as copy.public Nodes marked()
public void marked(Nodes mark)
mark
- marked context set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |