class XdmItem extends XdmValue (View source)

Methods

getHead()

Get the first item in the sequence

from  XdmValue
itemAt(int $index)

Get the n'th item in the value, counting from zero

from  XdmValue
int
size()

Get the number of items in the sequence

from  XdmValue
addXdmItem(XdmItem $item)

Add item to the sequence at the end.

from  XdmValue
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.

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

Details

XdmItem getHead()

Get the first item in the sequence

Return Value

XdmItem

XdmItem itemAt(int $index)

Get the n'th item in the value, counting from zero

Parameters

int $index

Return Value

XdmItem

int size()

Get the number of items in the sequence

Return Value

int

addXdmItem(XdmItem $item)

Add item to the sequence at the end.

Parameters

XdmItem $item

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.

Return Value

string

bool isNode()

Determine whether the item is a node value or not.

Return Value

bool

bool isAtomic()

Determine whether the item is an atomic value or not.

Return Value

bool

XdmAtomicValue|null getAtomicValue()

Provided the item is an atomic value we return the XdmAtomicValue otherwise return null

Return Value

XdmAtomicValue|null

XdmNode|null getNodeValue()

Provided the item is a node value we return the XdmNode otherwise return null

Return Value

XdmNode|null