Class XdmExternalObject
java.lang.Object
net.sf.saxon.s9api.XdmValue
net.sf.saxon.s9api.XdmItem
net.sf.saxon.s9api.XdmExternalObject
The class XdmExternalObject represents an XDM item that wraps an external (Java or .NET) object.
As such, it is outside the scope of the XDM specification (but permitted as an extension).
In releases prior to 9.5, external objects in Saxon were represented as atomic values. From 9.5 they are represented as a fourth kind of item, alongside nodes, atomic values, and functions.
-
Constructor Summary
ConstructorsConstructorDescriptionXdmExternalObject(Object value) Create an XdmExternalObject that wraps a supplied Java object -
Method Summary
Methods inherited from class XdmItem
asMap, getStringValue, getUnderlyingValue, getUnicodeStringValue, isAtomicValue, isNode, matches, size, stream, wrapItem, wrapItem, wrapItemMethods inherited from class XdmValue
append, documentOrder, isEmpty, itemAt, iterator, makeSequence, makeValue, matches, select, subsequence, where, wrap, wrapMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
XdmExternalObject
Create an XdmExternalObject that wraps a supplied Java object- Parameters:
value- the supplied Java object. Must not be null.- Throws:
NullPointerException- if the supplied value is null.
-
-
Method Details
-
getExternalObject
-
toString
-
equals
Compare two external objects for equality. Two instances ofXdmExternalObjectare equal if the Java objects that they wrap are equal. -
hashCode
public int hashCode()Return a hash code for the object. This respects the semantics ofequals(Object);
-