org.basex.query.xquery.item
Class Atm

java.lang.Object
  extended by org.basex.query.ExprInfo
      extended by org.basex.query.xquery.expr.Expr
          extended by org.basex.query.xquery.item.Item
              extended by org.basex.query.xquery.item.Str
                  extended by org.basex.query.xquery.item.Atm

public final class Atm
extends Str

Untyped atomic item.

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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.basex.query.xquery.expr.Expr
Expr.Return, Expr.Using
 
Field Summary
 
Fields inherited from class org.basex.query.xquery.item.Str
direct, ZERO
 
Fields inherited from class org.basex.query.xquery.item.Item
type
 
Constructor Summary
Atm(byte[] v)
          Constructor.
 
Method Summary
 int diff(Item it)
          Returns the difference between the current and the specified item.
 boolean eq(Item it)
          Checks the items for equality.
 
Methods inherited from class org.basex.query.xquery.item.Str
bool, dbl, dec, flt, get, get, iter, itr, str, toString
 
Methods inherited from class org.basex.query.xquery.item.Item
castErr, comp, d, hash, i, iter, iter, java, n, name, node, plan, returned, s, score, score, serialize, size, u, uses
 
Methods inherited from class org.basex.query.xquery.expr.Expr
e
 
Methods inherited from class org.basex.query.ExprInfo
color, info
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Atm

public Atm(byte[] v)
Constructor.

Parameters:
v - value
Method Detail

eq

public boolean eq(Item it)
           throws XQException
Description copied from class: Item
Checks the items for equality.

Overrides:
eq in class Str
Parameters:
it - item to be compared.
Returns:
result of check
Throws:
XQException - evaluation exception

diff

public int diff(Item it)
         throws XQException
Description copied from class: Item
Returns the difference between the current and the specified item.

Overrides:
diff in class Str
Parameters:
it - item to be compared.
Returns:
difference
Throws:
XQException - evaluation exception