org.basex.query.value.item
Class Hex
java.lang.Object
org.basex.data.ExprInfo
org.basex.query.expr.Expr
org.basex.query.value.Value
org.basex.query.value.item.Item
org.basex.query.value.item.Bin
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 classes/interfaces inherited from class org.basex.query.expr.Expr |
Expr.Flag |
Fields inherited from class org.basex.query.value.item.Item |
score, UNDEF |
Fields inherited from class org.basex.query.value.Value |
type |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Hex
public Hex(byte[] b)
- Constructor.
- Parameters:
b
- bytes
Hex
public Hex(byte[] v,
InputInfo ii)
throws QueryException
- Constructor.
- Parameters:
v
- textual representationii
- input info
- Throws:
QueryException
- query exception
Hex
public Hex(Bin b,
InputInfo ii)
throws QueryException
- Constructor.
- Parameters:
b
- binary dataii
- input info
- Throws:
QueryException
- query exception
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 comparedcoll
- collationii
- input info
- Returns:
- result of check
- Throws:
QueryException
- query exception
toString
public java.lang.String toString()
- Specified by:
toString
in class ExprInfo