org.basex.query.item
Class FPI

java.lang.Object
  extended by org.basex.query.ExprInfo
      extended by org.basex.query.expr.Expr
          extended by org.basex.query.item.Item
              extended by org.basex.query.item.Nod
                  extended by org.basex.query.item.FNode
                      extended by org.basex.query.item.FPI

public final class FPI
extends FNode

PI node fragment.

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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.basex.query.expr.Expr
Expr.Use
 
Field Summary
 QNm name
          PI name.
 
Fields inherited from class org.basex.query.item.Item
score, type
 
Constructor Summary
FPI(Node node, Nod parent)
          Constructor for DOM nodes (partial).
FPI(QNm n, byte[] v, Nod p)
          Constructor.
 
Method Summary
 FPI copy()
          Creates a new copy (clone) of the node.
 byte[] nname()
          Returns the node name.
 void plan(Serializer ser)
          Recursively sends the abstract syntax of this expression to the specified serializer.
 QNm qname()
          Returns the node name.
 void serialize(Serializer ser)
          Serializes the item.
 byte[] str()
          Returns an atomized string.
 String toString()
           
 
Methods inherited from class org.basex.query.item.FNode
attr, child, desc, descOrSelf, diff, is, par, parent
 
Methods inherited from class org.basex.query.item.Nod
anc, ancOrSelf, base, bool, dbl, dec, diff, eq, finish, flt, foll, follSibl, id, itr, java, kind, ns, parent, prec, precSibl, qname, self, uri
 
Methods inherited from class org.basex.query.item.Item
atomic, comp, d, duplicates, ebv, hashCode, i, iter, iter, n, name, node, removable, returned, s, score, score, size, test, u, uses
 
Methods inherited from class org.basex.query.expr.Expr
addText, checkCtx, checkDbl, checkItr, e, indexAccessible, indexEquivalent, remove, sameAs, v
 
Methods inherited from class org.basex.query.ExprInfo
color, info
 
Methods inherited from class java.lang.Object
equals, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

name

public final QNm name
PI name.

Constructor Detail

FPI

public FPI(QNm n,
           byte[] v,
           Nod p)
Constructor.

Parameters:
n - name
v - value
p - parent

FPI

public FPI(Node node,
           Nod parent)
Constructor for DOM nodes (partial). Provided by Erdal Karaca.

Parameters:
node - DOM node
parent - parent reference
Method Detail

str

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

Overrides:
str in class Item
Returns:
string representation

qname

public QNm qname()
Description copied from class: Nod
Returns the node name.

Overrides:
qname in class Nod
Returns:
name

nname

public byte[] nname()
Description copied from class: Nod
Returns the node name.

Overrides:
nname in class Nod
Returns:
name

serialize

public void serialize(Serializer ser)
               throws IOException
Description copied from class: Item
Serializes the item.

Overrides:
serialize in class Item
Parameters:
ser - serializer
Throws:
IOException - I/O exception

copy

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

Specified by:
copy in class Nod
Returns:
new copy

plan

public void plan(Serializer ser)
          throws IOException
Description copied from class: ExprInfo
Recursively sends the abstract syntax of this expression to the specified serializer.

Overrides:
plan in class Item
Parameters:
ser - serializer
Throws:
IOException - I/O exception

toString

public String toString()
Overrides:
toString in class Item