public class HexBinaryValue extends AtomicValue
EMPTY_CLASS_ARRAYEMPTY_VALUE_ARRAYEVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD| Constructor and Description |
|---|
HexBinaryValue(byte[] value)
Constructor: create a hexBinary value from a given array of bytes
|
HexBinaryValue(java.lang.CharSequence in)
Constructor: create a hexBinary value from a supplied string, in which
each octet is represented by a pair of values from 0-9, a-f, A-F
|
| Modifier and Type | Method and Description |
|---|---|
AtomicValue |
convertPrimitive(BuiltInAtomicType requiredType,
boolean validate,
XPathContext context)
Convert to target data type
|
java.lang.Object |
convertToJava(java.lang.Class target,
XPathContext context)
Convert to Java object (for passing to external functions)
|
boolean |
equals(java.lang.Object other)
Test if the two hexBinary values are equal.
|
byte[] |
getBinaryValue()
Get the binary value
|
ItemType |
getItemType(TypeHierarchy th)
Determine the data type of the exprssion
|
int |
getLengthInOctets()
Get the number of octets in the value
|
java.lang.String |
getStringValue()
Convert to string
|
int |
hashCode()
Return a hash code to support the equals() function
|
checkPermittedContents, convert, convert, display, effectiveBooleanValue, evaluateAsString, evaluateItem, getCardinality, getComponent, getImplementationMethod, getLength, getPrimitiveValue, getStringValueCS, getTypedValue, hasBuiltInType, iterate, process, toStringasItem, asIterator, asValue, convert, convertJavaObjectToXPath, getDependencies, getIterator, getParentExpression, getSpecialProperties, itemAt, iterateSubExpressions, makeQNameValue, optimize, promote, reduce, simplify, stringToNumber, typeCheckpublic HexBinaryValue(java.lang.CharSequence in)
throws XPathException
XPathExceptionpublic HexBinaryValue(byte[] value)
public byte[] getBinaryValue()
public AtomicValue convertPrimitive(BuiltInAtomicType requiredType, boolean validate, XPathContext context)
convertPrimitive in class AtomicValuerequiredType - an integer identifying the required atomic typecontext - validate - true if validation is required. If set to false, the caller guarantees that
the value is valid for the target data type, and that further validation is therefore not required.
Note that a validation failure may be reported even if validation was not requested.public java.lang.String getStringValue()
getStringValue in interface ItemgetStringValue in interface ValueRepresentationgetStringValue in class AtomicValueItem.getStringValueCS()public ItemType getItemType(TypeHierarchy th)
getItemType in interface ExpressiongetItemType in class Valueth - public int getLengthInOctets()
public java.lang.Object convertToJava(java.lang.Class target,
XPathContext context)
throws XPathException
convertToJava in class ValueXPathExceptionpublic boolean equals(java.lang.Object other)