net.sf.saxon.value
public class HexBinaryValue extends AtomicValue
| Constructor Summary | |
|---|---|
| HexBinaryValue(CharSequence s)
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 | |
| HexBinaryValue(byte[] value)
Constructor: create a hexBinary value from a given array of bytes | |
| Method Summary | |
|---|---|
| AtomicValue | convertPrimitive(BuiltInAtomicType requiredType, boolean validate, XPathContext context)
Convert to target data type |
| Object | convertToJava(Class target, XPathContext context)
Convert to Java object (for passing to external functions) |
| boolean | equals(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 |
| String | getStringValue()
Convert to string |
| int | hashCode() |
Parameters: requiredType an integer identifying the required atomic type context
Returns: an AtomicValue, a value of the required type; or an ErrorValue
Parameters: th
Returns: Type.HEX_BINARY_TYPE
Returns: the canonical representation.