org.basex.query.xquery.item
Class Hex

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

public final class Hex
extends Item

HexBinary 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.Item
type
 
Constructor Summary
Hex(B64 b)
          Constructor.
Hex(byte[] v)
          Constructor.
 
Method Summary
 boolean eq(Item it)
          Checks the items for equality.
 java.lang.Object java()
          Returns a Java object.
 byte[] str()
          Returns an atomized string.
 java.lang.String toString()
           
 
Methods inherited from class org.basex.query.xquery.item.Item
bool, castErr, comp, d, dbl, dec, diff, flt, hash, i, iter, iter, itr, 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

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

str

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

Overrides:
str in class Item
Returns:
string representation

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

java

public java.lang.Object java()
Description copied from class: Item
Returns a Java object.

Overrides:
java in class Item
Returns:
string representation

toString

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