Saxon.Api

 

 

Saxon.Api

Class XdmExternalObject


public class XdmExternalObject
extends XdmItem

An XdmItem that wraps an external .NET object.

External objects are a Saxon extension, and represent a fourth kind of item, after nodes, atomic values, and functions. They are primarily useful in conjunction with extension functions: an external object may be returned from one extension function, and passed as an argument to another. They can also be supplied as parameters to a stylesheet or query, which in turn might pass them to an extension function.

In the first release of SaxonCS (11.0), this type was generic, and was parameterized by the type of the wrapped object. This caused problems when attempting to reconstruct an XdmExternalObject from its internal representation (see bug 5151); in consequence the type parameter was dropped in 11.1.

Constructor Summary

XdmExternalObject (object value)

Wrap an external object as an XdmItem

 

Method Summary

 object GetObject ()

Get the wrapped external object

 bool IsAtomic ()

Ask whether the item is an atomic value.

 

Constructor Detail

XdmExternalObject

public XdmExternalObject(object value)

Wrap an external object as an XdmItem

Parameters:

value - The object to be wrapped

Method Detail

GetObject

public object GetObject()

Get the wrapped external object

Returns:

The wrapped external object

IsAtomic

public override bool IsAtomic()

Ask whether the item is an atomic value.

Returns:

False: the item is not an atomic value.