|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.basex.query.xquery.XQResult
public final class XQResult
This is a container for XQuery results.
| Field Summary | |
|---|---|
XQContext |
ctx
Query context. |
Item |
item
Result sequence. |
| Constructor Summary | |
|---|---|
XQResult(XQContext c,
Item s)
Constructor. |
|
| Method Summary | |
|---|---|
Nodes |
nodes(Data data)
Converts nodes of a XQuery result into a BaseX nodeset. |
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. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final XQContext ctx
public final Item item
| Constructor Detail |
|---|
public XQResult(XQContext c,
Item s)
c - query contexts - result sequence| Method Detail |
|---|
public Nodes nodes(Data data)
nullis returned. This method is only called by the GUI to allow visualization of XQuery results.
data - data reference
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 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 | ||||||||