|
||||||||||
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.
Constructor Summary | |
---|---|
XQResult(XQContext c,
SeqBuilder sb)
Constructor. |
Method Summary | |
---|---|
Item |
item()
Returns an item representation of the result. |
boolean |
same(Result v)
Compares values for equality. |
void |
serialize(Serializer ser)
Serializes the complete result. |
void |
serialize(Serializer ser,
int n)
Serializes the specified result. |
int |
size()
Number of values, stored in the result instance. |
java.lang.String |
toString()
|
Result |
xpResult(Data data)
Converts nodes to an XPath result. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XQResult(XQContext c, SeqBuilder sb)
c
- query contextsb
- result sequenceMethod Detail |
---|
public int size()
size
in interface Result
public boolean same(Result v)
same
in interface Result
v
- value to be compared
public void serialize(Serializer ser) throws java.io.IOException
serialize
in interface Result
ser
- serializer
java.io.IOException
- exceptionpublic void serialize(Serializer ser, int n) throws java.io.IOException
serialize
in interface Result
ser
- serializern
- number of result to serialize
java.io.IOException
- exceptionpublic Result xpResult(Data data)
data
- data reference
public Item item()
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 |