class XdmAtomicValue extends XdmItem (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 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.

from  XdmItem
bool
isAtomic()

Determine whether the item is an atomic value or a node. Return TRUE if the item is an atomic value

getAtomicValue()

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

from  XdmItem
XdmNode|null
getNodeValue()

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

from  XdmItem
bool
getBooleanValue()

Get the value converted to a boolean using the XPath casting rules

float
getDoubleValue()

Get the value converted to a float using the XPath casting rules. If the value is a string, the XSD 1.1 rules are used, which means that the string "+INF" is recognised

int
getLongValue()

Get the value converted to an integer using the XPath casting rules

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 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 a node. Return TRUE if the item is an atomic value

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

bool getBooleanValue()

Get the value converted to a boolean using the XPath casting rules

Return Value

bool

float getDoubleValue()

Get the value converted to a float using the XPath casting rules. If the value is a string, the XSD 1.1 rules are used, which means that the string "+INF" is recognised

Return Value

float

int getLongValue()

Get the value converted to an integer using the XPath casting rules

Return Value

int