Saxon.Api
Class XdmItem
- Direct Known Subclasses
- XdmAtomicValue, XdmExternalObjectValue, XdmFunctionItem, XdmNode
-
public abstract class XdmItem
- extends XdmValue
The class XdmItem
represents an item in a sequence, as defined
by the XDM data model. An item may be an atomic value, a node, a function (including
maps
and arrays), or an external object.
An item is a member of a sequence, but it can also be considered as
a sequence (of length one) in its own right. XdmItem
is a subtype
of XdmValue
because every item in the XDM data model is also a
value.
It cannot be assumed that every sequence of length one will always be
represented by an XdmItem
. It is quite possible for an XdmValue
that is not an XdmItem
to hold a singleton sequence. Use XdmValue.Simplify
to ensure that a singleton is represented as an XdmItem
.
Method Summary |
|
---|---|
string | GetStringValue() Get the string value of the item. |
bool | IsAtomic() Determine whether the item is an atomic value. |
bool | IsNode() Determine whether the item is a node or some other type of item. |
bool | Matches(XdmItemType typei) Determine whether this item matches a given item type. |
Method Detail
GetStringValue
IsAtomic
Determine whether the item is an atomic value.
Returns:
IsNode
Determine whether the item is a node or some other type of item.
Returns:
Matches
Determine whether this item matches a given item type.
Parameters:
typei
- The item type to be tested against this itemReturns:
Get the string value of the item.
ToString()
on the external object.In all cases the result is the same as applying the XPath
string()
function.Returns: