haXe XPath Documentation
Back | Index
class xpath.type.XPathNodeSet
extends XPathValue
Class implementing the node set data type used by XPath queries.
function new(?nodes : Array<dcxml.Xml>) : Void
Constructs a new XPathNodeSet with the specified value.
function equals(rightOperand : XPathValue) : XPathBoolean
Performs the equality operation as defined by the XPath specification.
function getBool() : Bool
Gets the boolean value of this XPathNodeSet as per the boolean() function defined by the XPath specification. The node set is true if and only if it is non-empty.
function getFirstNodeDocumentOrder() : dcxml.Xml
Gets the node contained by this node set that is first in document order.
function getFloat() : Float
Gets the numeric value of this XPathNodeSet as per the number() function defined by the XPath specification. The XPathNodeSet is first converted to a string by calling getString. The conversion is then the same as specified by XPathString.getFloat().
function getNodes() : Array<dcxml.Xml>
Gets an array of the nodes contained by this node set.
function getNodesDocumentOrder() : Array<dcxml.Xml>
Gets an array of the nodes contained by this node set in document order.
function getString() : String
Gets the string value of this XPathNodeSet as per the string() function defined by the XPath specification. The node set is converted by returning the string value of the node in the node set that is first in document order. If the node set is empty, an empty string is returned.
function greaterThan(rightOperand : XPathValue) : XPathBoolean
Performs the greater-than operation as defined by the XPath specification.
function greaterThanOrEqual(rightOperand : XPathValue) : XPathBoolean
Performs the greater-than-or-equal operation as defined by the XPath specification.
function lessThan(rightOperand : XPathValue) : XPathBoolean
Performs the less-than operation as defined by the XPath specification.
function lessThanOrEqual(rightOperand : XPathValue) : XPathBoolean
Performs the less-than-or-equal operation as defined by the XPath specification.
function notEqual(rightOperand : XPathValue) : XPathBoolean
Performs the inequality operation as defined by the XPath specification.
Back | Index