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)
Construct an atomic value given its lexical representation and the name of the required
built-in atomic type.
|
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, newAtomicValue, size, wrapItem
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.Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.