org.exist.xquery.value
Class Base64Binary
java.lang.Object
org.exist.xquery.value.AtomicValue
org.exist.xquery.value.BinaryValue
org.exist.xquery.value.Base64Binary
- All Implemented Interfaces:
- Comparable, Indexable, Item, Sequence
public class Base64Binary
- 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, hasMany, hasOne, isCached, isEmpty, isPersistentSet, itemAt, iterate, nodeMoved, promote, removeDuplicates, serializeValue, setIsCached, setSelfAsContext, startsWith, toNodeSet, toSAX, toSequence, toString, unorderedIterator |
Base64Binary
public Base64Binary(byte[] data)
Base64Binary
public Base64Binary(String str)
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
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
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
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- Overrides:
effectiveBooleanValue in class AtomicValue
- Throws:
XPathException
Copyright (C) Wolfgang Meier. All rights reserved.