public class DOMXPathResult extends Object implements XPathResult:
Pure Klyn implementation of the DOM XPathResult contract.
@example `klyn import klyn.io.xml.xpath import org.w3c.dom.xpath
result = DOMXPathResult.fromString("Klyn", XPathResult.STRING_TYPE, null) print(result.stringValue)
| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | booleanValuebooleanValue as Boolean: |
Boolean result value. |
| public readonly property | invalidIteratorStateinvalidIteratorState as Boolean: |
Iterator invalidation state. |
| public readonly property | numberValuenumberValue as Double: |
Numeric result value. |
| public readonly property | resultTyperesultType as Int: |
Actual result type. |
| public readonly property | singleNodeValuesingleNodeValue as Node: |
Single node result value. |
| public readonly property | snapshotLengthsnapshotLength as Int: |
Number of nodes in a snapshot result. |
| public readonly property | stringValuestringValue as String: |
String result value. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | DOMXPathResult | Creates an empty `ANY_TYPE` result. |
| Modifier and Type | Member | Description |
|---|---|---|
| public static | fromBooleanfromBoolean(value as Boolean, requestedType as Int, reusable as XPathResult) as XPathResult throws XPathException: |
Builds a result from a boolean value. |
| public static | fromNodeSetfromNodeSet(nodes as ArrayList<Node>, requestedType as Int, reusable as XPathResult) as XPathResult throws XPathException: |
Builds a result from a node set. |
| public static | fromNumberfromNumber(value as Double, requestedType as Int, reusable as XPathResult) as XPathResult throws XPathException: |
Builds a result from a numeric value. |
| public static | fromStringfromString(value as String, requestedType as Int, reusable as XPathResult) as XPathResult throws XPathException: |
Builds a result from a string value. |
| public | iterateNextiterateNext() as Node throws XPathException, DOMException: |
Returns the next node from an iterator result. |
| public static | nodeStringValue | No summary. |
| public | snapshotItemsnapshotItem(index as Int) as Node throws XPathException: |
Returns one node from a snapshot result. |