public class XdmExternalObject extends XdmItem
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 and Description |
|---|
XdmExternalObject(java.lang.Object value)
Create an XdmExternalObject that wraps a supplied Java object
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other)
Compare two external objects for equality.
|
java.lang.Object |
getExternalObject()
Get the wrapped Java object
|
int |
hashCode()
Return a hash code for the object.
|
java.lang.String |
toString()
Get the result of converting the external value to a string.
|
asMap, getStringValue, getUnderlyingValue, isAtomicValue, matches, size, stream, wrapItem, wrapItem, wrapItemappend, documentOrder, fromGroundedValue, itemAt, iterator, makeSequence, makeValue, select, setValue, wrap, wrappublic XdmExternalObject(java.lang.Object value)
value - the supplied Java object. Must not be null.java.lang.NullPointerException - if the supplied value is null.public java.lang.Object getExternalObject()
public java.lang.String toString()
public boolean equals(java.lang.Object other)
XdmExternalObject are equal
if the Java objects that they wrap are equal.equals in class java.lang.Objectother - the object to be comparedXdmExternalObject and the two wrapped objects
are equal under the equals() method.public int hashCode()
equals(Object);hashCode in class java.lang.ObjectCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.