|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.basex.query.xquery.expr.Expr
org.basex.query.xquery.item.Item
org.basex.query.xquery.item.Node
org.basex.query.xquery.item.DNode
public final class DNode
Disk-based Node item.
| Field Summary | |
|---|---|
Data |
data
Data reference. |
int |
pre
Pre value. |
Node |
root
Root node (constructor). |
| Fields inherited from class org.basex.query.xquery.expr.Expr |
|---|
type |
| Constructor Summary | |
|---|---|
DNode(Data d,
int p,
Node r,
Type t)
Constructor. |
|
| Method Summary | |
|---|---|
NodeIter |
anc()
Returns an ancestor axis iterator. |
NodeIter |
ancOrSelf()
Returns an ancestor-or-self axis iterator. |
NodeIter |
attr()
Returns an attribute axis iterator. |
byte[] |
base()
Returns the database name. |
NodeMore |
child()
Returns a child axis iterator. |
DNode |
copy()
Creates a new copy (clone) of the node. |
NodeIter |
desc()
Returns a descendant axis iterator. |
NodeIter |
descOrSelf()
Returns a descendant-or-self axis iterator. |
int |
diff(Node nod)
Compares two nodes for their unique order. |
DNode |
finish()
Returns a final node representation. |
NodeIter |
foll()
Returns a following axis iterator. |
NodeIter |
follSibl()
Returns a following-sibling axis iterator. |
boolean |
is(Node nod)
Compares two nodes for equality. |
byte[] |
name()
Returns the node name. |
NodeIter |
par()
Returns a parent axis iterator. |
Node |
parent()
Returns the parent node. |
void |
parent(Node p)
Sets the parent node. |
NodeIter |
prec()
Returns a preceding axis iterator. |
NodeIter |
precSibl()
Returns a preceding-sibling axis iterator. |
QNm |
qname()
Returns the node name. |
NodeIter |
self()
Returns an self axis iterator. |
void |
serElem(PrintOutput out,
XQContext ctx,
int pos,
int level)
Serializes the specified node, starting from the specified pre value. |
void |
serElem(ResultReader rr,
XQContext ctx,
int pos,
int level)
Serializes the specified node, starting from the specified pre value. |
void |
serialize(PrintOutput out,
XQContext ctx,
int level)
Serializes the item. |
void |
serialize(ResultReader rr,
XQContext ctx,
int level)
Serializes the item. |
byte[] |
str()
Returns an atomized string. |
java.lang.String |
toString()
|
| Methods inherited from class org.basex.query.xquery.item.Node |
|---|
bool, dbl, diff, eq, flt, itr, node, ns, u |
| Methods inherited from class org.basex.query.xquery.item.Item |
|---|
castErr, comp, eval, i, info, iter, size |
| Methods inherited from class org.basex.query.xquery.expr.Expr |
|---|
cls, d, e, n, s |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public Data data
public int pre
public Node root
| Constructor Detail |
|---|
public DNode(Data d,
int p,
Node r,
Type t)
d - data referencep - pre valuer - parent referencet - node type| Method Detail |
|---|
public NodeIter anc()
Node
anc in class Nodepublic NodeIter ancOrSelf()
Node
ancOrSelf in class Nodepublic NodeIter attr()
Node
attr in class Nodepublic byte[] base()
Node
base in class Nodepublic NodeMore child()
Node
child in class Nodepublic DNode copy()
Node
copy in class Nodepublic NodeIter desc()
Node
desc in class Nodepublic NodeIter descOrSelf()
Node
descOrSelf in class Nodepublic int diff(Node nod)
Node
diff in class Nodenod - node to be compared
public DNode finish()
Node
finish in class Nodepublic NodeIter foll()
Node
foll in class Nodepublic NodeIter follSibl()
Node
follSibl in class Nodepublic boolean is(Node nod)
Node
is in class Nodenod - node to be compared
public byte[] name()
Node
name in class Nodepublic NodeIter par()
Node
par in class Nodepublic Node parent()
Node
parent in class Nodepublic void parent(Node p)
Node
parent in class Nodep - parent nodepublic NodeIter prec()
Node
prec in class Nodepublic NodeIter precSibl()
Node
precSibl in class Nodepublic QNm qname()
Node
qname in class Nodepublic NodeIter self()
Node
self in class Node
public void serElem(PrintOutput out,
XQContext ctx,
int pos,
int level)
throws java.io.IOException,
XQException
out - output streamctx - xquery contextpos - pre valuelevel - current level
java.io.IOException - I/O exception
XQException - evaluation exception
public void serElem(ResultReader rr,
XQContext ctx,
int pos,
int level)
throws org.xml.sax.SAXException
rr - result readerctx - xquery contextpos - pre valuelevel - current level
org.xml.sax.SAXException - SAX exception
public void serialize(PrintOutput out,
XQContext ctx,
int level)
throws java.io.IOException,
XQException
Item
serialize in class Itemout - output streamctx - query contextlevel - current level
java.io.IOException - I/O exception
XQException - evaluation exception
public void serialize(ResultReader rr,
XQContext ctx,
int level)
throws org.xml.sax.SAXException
Item
serialize in class Itemrr - content handlerctx - query contextlevel - current level
org.xml.sax.SAXException - SAX exceptionpublic byte[] str()
Expr
str in class Exprpublic java.lang.String toString()
toString in class Item
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||