org.basex.query.value.item
Class Hex

java.lang.Object
  extended by org.basex.data.ExprInfo
      extended by org.basex.query.expr.Expr
          extended by org.basex.query.value.Value
              extended by org.basex.query.value.item.Item
                  extended by org.basex.query.value.item.Bin
                      extended by org.basex.query.value.item.Hex
All Implemented Interfaces:
java.lang.Iterable<Item>

public final class Hex
extends Bin

HexBinary item (xs:hexBinary).

Author:
BaseX Team 2005-12, BSD License, Christian Gruen

Nested Class Summary
 
Nested classes/interfaces inherited from class org.basex.query.expr.Expr
Expr.Flag
 
Field Summary
 
Fields inherited from class org.basex.query.value.item.Item
score, UNDEF
 
Fields inherited from class org.basex.query.value.Value
type
 
Constructor Summary
Hex(Bin b, InputInfo ii)
          Constructor.
Hex(byte[] b)
          Constructor.
Hex(byte[] v, InputInfo ii)
          Constructor.
 
Method Summary
 boolean eq(Item it, Collation coll, InputInfo ii)
          Checks the items for equality.
 byte[] string(InputInfo ii)
          Returns a string representation of the value.
 java.lang.String toString()
           
 
Methods inherited from class org.basex.query.value.item.Bin
binary, input, sameAs, toJava
 
Methods inherited from class org.basex.query.value.item.Item
bool, castErr, comparable, dbl, dec, description, diff, ebv, equiv, flt, hash, homogeneous, isItem, item, itemAt, iter, iterable, itr, materialize, plan, score, score, size, test, type, typeId, writeTo, xdmInfo
 
Methods inherited from class org.basex.query.value.Value
accept, cache, checkUp, compile, copy, count, data, exprSize, has, inline, isValue, iter, iterator, removable, serialize, value
 
Methods inherited from class org.basex.query.expr.Expr
addText, compEbv, copy, hasFreeVars, indexAccessible, indexEquivalent, inlineAll, isEmpty, isFunction, isVacuous, markTailCalls, optimize, uses, visitAll
 
Methods inherited from class org.basex.data.ExprInfo
addPlan, addPlan, info, planAttr, planElem
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Hex

public Hex(byte[] b)
Constructor.

Parameters:
b - bytes

Hex

public Hex(byte[] v,
           InputInfo ii)
    throws QueryException
Constructor.

Parameters:
v - textual representation
ii - input info
Throws:
QueryException - query exception

Hex

public Hex(Bin b,
           InputInfo ii)
    throws QueryException
Constructor.

Parameters:
b - binary data
ii - input info
Throws:
QueryException - query exception
Method Detail

string

public byte[] string(InputInfo ii)
              throws QueryException
Description copied from class: Item
Returns a string representation of the value.

Specified by:
string in class Item
Parameters:
ii - input info, use null if none is available
Returns:
string value
Throws:
QueryException - if the item can't be atomized

eq

public boolean eq(Item it,
                  Collation coll,
                  InputInfo ii)
           throws QueryException
Description copied from class: Item
Checks the items for equality.

Specified by:
eq in class Item
Parameters:
it - item to be compared
coll - collation
ii - input info
Returns:
result of check
Throws:
QueryException - query exception

toString

public java.lang.String toString()
Specified by:
toString in class ExprInfo