|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.basex.data.Nodes
public final class Nodes
This is a container for context nodes. Instances of this class are stored
in the Context class to reference the currently used nodes.
| Field Summary | |
|---|---|
Data |
data
Root Node. |
int[] |
pre
Pre values container. |
int |
size
Number of stored nodes. |
| Constructor Summary | |
|---|---|
Nodes(Data d)
Node Set constructor. |
|
Nodes(int[] n,
Data d)
Node Set constructor. |
|
Nodes(int n,
Data d)
Node Set constructor. |
|
| Method Summary | |
|---|---|
Nodes |
add(int p)
The specified pre value is added to or removed from the context set. |
Nodes |
copy()
Returns a copy of the node set. |
int |
find(int p)
Returns the position of the specified node or the negative value - 1 of the position where it should have been found. |
boolean |
sameAs(Result v)
Compares values for equality. |
void |
serialize(PrintOutput out,
boolean valid)
Serializes the stored data to the specified output stream. |
void |
serialize(ResultReader rr)
Serializes the stored data to the specified reader. |
int |
size()
Number of values, stored in the result instance. |
Nodes |
toggle(int p)
The specified pre value is added to or removed from the context set. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public Data data
public int[] pre
public int size
| Constructor Detail |
|---|
public Nodes(Data d)
d - data reference
public Nodes(int[] n,
Data d)
n - node setd - data reference
public Nodes(int n,
Data d)
n - node setd - data reference| Method Detail |
|---|
public Nodes add(int p)
p - pre value
public Nodes copy()
public int find(int p)
p - pre value
public boolean sameAs(Result v)
sameAs in interface Resultv - value to be compared
public void serialize(PrintOutput out,
boolean valid)
throws java.io.IOException
serialize in interface Resultout - output streamvalid - well-formed output
java.io.IOException - in case of problems with the PrintOutput
public void serialize(ResultReader rr)
throws org.xml.sax.SAXException
serialize in interface Resultrr - default handler
org.xml.sax.SAXException - in case of problems with the PrintOutputpublic int size()
size in interface Resultpublic Nodes toggle(int p)
p - pre value
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||