org.exist.xquery.value
Class HexBinary
java.lang.Object
org.exist.xquery.value.AtomicValue
org.exist.xquery.value.BinaryValue
org.exist.xquery.value.HexBinary
- All Implemented Interfaces:
- Comparable, Indexable, Item, Sequence
public class HexBinary
- extends BinaryValue
Method Summary |
AtomicValue |
convertTo(int requiredType)
Convert this item into an atomic value, whose type corresponds to
the specified target type. |
boolean |
effectiveBooleanValue()
Get the effective boolean value of this sequence. |
String |
getStringValue()
Return the string value of this item (see the definition of string value in XPath). |
int |
getType()
Return the type of this item according to the type constants defined in class
Type . |
Object |
toJavaObject(Class target)
Convert the value into an instance of the specified
Java class. |
Methods inherited from class org.exist.xquery.value.AtomicValue |
add, addAll, atomize, clearContext, compareTo, contains, copyTo, dump, endsWith, getCardinality, getCollectionIterator, getDocumentSet, getItemCount, getItemType, getState, hasChanged, hasMany, hasOne, isCacheable, isCached, isEmpty, isPersistentSet, itemAt, iterate, nodeMoved, promote, removeDuplicates, serializeValue, setIsCached, setSelfAsContext, startsWith, toMemNodeSet, toNodeSet, toSAX, toSequence, toString, unorderedIterator |
HexBinary
public HexBinary(byte[] data)
HexBinary
public HexBinary(String in)
throws XPathException
- Throws:
XPathException
getType
public int getType()
- Description copied from interface:
Item
- Return the type of this item according to the type constants defined in class
Type
.
- Specified by:
getType
in interface Indexable
- Specified by:
getType
in interface Item
- Overrides:
getType
in class AtomicValue
- Returns:
- Type of the Indexable
convertTo
public AtomicValue convertTo(int requiredType)
throws XPathException
- Description copied from interface:
Item
- Convert this item into an atomic value, whose type corresponds to
the specified target type. requiredType should be one of the type
constants defined in
Type
. An XPathException
is thrown
if the conversion is impossible.
- Specified by:
convertTo
in interface Item
- Specified by:
convertTo
in interface Sequence
- Specified by:
convertTo
in class AtomicValue
- Parameters:
requiredType
- one of the type constants defined in class Type
- Throws:
XPathException
getStringValue
public String getStringValue()
throws XPathException
- Description copied from interface:
Item
- Return the string value of this item (see the definition of string value in XPath).
- Specified by:
getStringValue
in interface Item
- Specified by:
getStringValue
in interface Sequence
- Specified by:
getStringValue
in class AtomicValue
- Throws:
XPathException
toJavaObject
public Object toJavaObject(Class target)
throws XPathException
- Description copied from interface:
Sequence
- Convert the value into an instance of the specified
Java class.
- Specified by:
toJavaObject
in interface Item
- Specified by:
toJavaObject
in interface Sequence
- Overrides:
toJavaObject
in class AtomicValue
- Throws:
XPathException
effectiveBooleanValue
public boolean effectiveBooleanValue()
throws XPathException
- Description copied from interface:
Sequence
- Get the effective boolean value of this sequence. Will be false if the sequence is empty,
true otherwise.
- Specified by:
effectiveBooleanValue
in interface Sequence
- Specified by:
effectiveBooleanValue
in class AtomicValue
- Throws:
XPathException
Copyright (C) Wolfgang Meier. All rights reserved.