Saxon.Api

 

 

Saxon.Api

Class XdmExternalObject<T>


public class XdmExternalObject<T>
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.

Constructor Summary

XdmExternalObject (T value)

Wrap an external object as an XdmItem

 

Method Summary

 T GetObject ()

Get the wrapped external object

 bool IsAtomic ()

Ask whether the item is an atomic value.

 

Constructor Detail

XdmExternalObject

public XdmExternalObject(T value)

Wrap an external object as an XdmItem

Parameters:

value - The object to be wrapped

Method Detail

GetObject

public T 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.