org.basex.query.xquery.item
Class FTxt

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.FTxt

public final class FTxt
extends FNode

Text 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
FTxt(byte[] t, Node p)
          Constructor.
 
Method Summary
 FTxt copy()
          Creates a new copy (clone) of the node.
static void serialize(PrintOutput out, byte[] v)
          Serializes the specified text 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
base, 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

FTxt

public FTxt(byte[] t,
            Node p)
Constructor.

Parameters:
t - text value
p - parent
Method Detail

copy

public FTxt 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 static void serialize(PrintOutput out,
                             byte[] v)
                      throws java.io.IOException
Serializes the specified text node.

Parameters:
out - output stream
v - value to be serialized
Throws:
java.io.IOException - I/O exception

serialize

public void serialize(PrintOutput out,
                      XQContext ctx,
                      int level)
               throws java.io.IOException
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

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