org.basex.query.xquery.item
Class Hex

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

public final class Hex
extends Item

HexBinary item.

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
Hex(B64 b)
          Constructor.
Hex(byte[] v)
          Constructor.
 
Method Summary
 boolean eq(Item it)
          Checks the items for equality.
 byte[] str()
          Returns an atomized string.
 java.lang.String toString()
           
 
Methods inherited from class org.basex.query.xquery.item.Item
bool, castErr, comp, dbl, diff, eval, flt, i, info, iter, itr, serialize, serialize, size
 
Methods inherited from class org.basex.query.xquery.expr.Expr
cls, d, e, n, node, s, u
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Hex

public Hex(B64 b)
Constructor.

Parameters:
b - base64 data

Hex

public Hex(byte[] v)
    throws XQException
Constructor.

Parameters:
v - value
Throws:
XQException - evaluation exception
Method Detail

eq

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

Specified by:
eq in class Item
Parameters:
it - item to be compared.
Returns:
result of check
Throws:
XQException - evaluation 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