XdmItem
class XdmItem extends XdmValue (View source)
Methods
Get the string value of the item. For a node, this gets the string value of the node. For an atomic value, it has the same effect as casting the value to a string. In all cases the result is the same as applying the XPath string() function.
Determine whether the item is a node value or not.
Determine whether the item is an atomic value or not.
Provided the item is an atomic value we return the XdmAtomicValue otherwise return null
Provided the item is a node value we return the XdmNode otherwise return null
Details
XdmItem
getHead()
Get the first item in the sequence
XdmItem
itemAt(int $index)
Get the n'th item in the value, counting from zero
int
size()
Get the number of items in the sequence
addXdmItem(XdmItem $item)
Add item to the sequence at the end.
string
getStringValue()
Get the string value of the item. For a node, this gets the string value of the node. For an atomic value, it has the same effect as casting the value to a string. In all cases the result is the same as applying the XPath string() function.
bool
isNode()
Determine whether the item is a node value or not.
bool
isAtomic()
Determine whether the item is an atomic value or not.
XdmAtomicValue|null
getAtomicValue()
Provided the item is an atomic value we return the XdmAtomicValue otherwise return null
XdmNode|null
getNodeValue()
Provided the item is a node value we return the XdmNode otherwise return null