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(Object value) |
XdmExternalObject(String lexicalForm,
ItemType type)
Deprecated.
since 9.7.0.8: see Saxon bug 2894. This method serves no useful purpose.
|
Modifier and Type | Method and Description |
---|---|
Object |
getExternalObject()
Get the wrapped Java object
|
String |
toString()
Get the result of converting the external value to a string.
|
asMap, getStringValue, isAtomicValue, size, wrapItem
append, getUnderlyingValue, itemAt, iterator, setValue, wrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public XdmExternalObject(Object value)
public XdmExternalObject(String lexicalForm, ItemType type) throws SaxonApiException
This method cannot be used to construct values that are namespace-sensitive (QNames and Notations)
lexicalForm
- the value in the lexical space of the target data type. More strictly, the input
value before the actions of the whitespace facet for the target data type are applied.type
- the required atomic type. This must either be one of the built-in
atomic types defined in XML Schema, or a user-defined type whose definition appears
in a schema that is known to the Processor. It must not be an abstract type.SaxonApiException
- if the type is unknown, or is not atomic, or is namespace-sensitive;
or if the value supplied in lexicalForm is not in the lexical space of the specified atomic
type.public Object getExternalObject()
Copyright (c) 2004-2017 Saxonica Limited. All rights reserved.