org.basex.query.xquery.item
Class FDoc

java.lang.Object
  extended by org.basex.query.xquery.expr.Expr
      extended by org.basex.query.xquery.item.Item
          extended by org.basex.query.xquery.item.Node
              extended by org.basex.query.xquery.item.FNode
                  extended by org.basex.query.xquery.item.FDoc

public final class FDoc
extends FNode

Document Node.

Author:
Workgroup DBIS, University of Konstanz 2005-07, ISC License, Christian Gruen

Field Summary
 
Fields inherited from class org.basex.query.xquery.expr.Expr
type
 
Constructor Summary
FDoc(NodeBuilder ch, byte[] b)
          Constructor.
 
Method Summary
 byte[] base()
          Returns the database name.
 FDoc copy()
          Creates a new copy (clone) of the node.
 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.FNode
anc, ancOrSelf, attr, child, desc, descOrSelf, foll, follSibl, par, prec, precSibl, self
 
Methods inherited from class org.basex.query.xquery.item.Node
bool, dbl, diff, diff, eq, finish, flt, is, itr, name, node, ns, parent, parent, qname, 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
 

Constructor Detail

FDoc

public FDoc(NodeBuilder ch,
            byte[] b)
Constructor.

Parameters:
ch - children
b - base uri
Method Detail

base

public byte[] base()
Description copied from class: Node
Returns the database name.

Overrides:
base in class Node
Returns:
database name

copy

public FDoc copy()
Description copied from class: Node
Creates a new copy (clone) of the node.

Specified by:
copy in class Node
Returns:
new copy

serialize

public void serialize(PrintOutput out,
                      XQContext ctx,
                      int level)
               throws java.io.IOException,
                      XQException
Description copied from class: Item
Serializes the item.

Overrides:
serialize in class Item
Parameters:
out - output stream
ctx - query context
level - current level
Throws:
java.io.IOException - I/O exception
XQException - evaluation exception

serialize

public void serialize(ResultReader rr,
                      XQContext ctx,
                      int level)
               throws org.xml.sax.SAXException
Description copied from class: Item
Serializes the item.

Overrides:
serialize in class Item
Parameters:
rr - content handler
ctx - query context
level - current level
Throws:
org.xml.sax.SAXException - SAX exception

str

public byte[] str()
Description copied from class: Expr
Returns an atomized string.

Overrides:
str in class Expr
Returns:
string representation

toString

public java.lang.String toString()
Overrides:
toString in class Item