XPathResult.hx 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /*
  2. * Copyright (C)2005-2013 Haxe Foundation
  3. *
  4. * Permission is hereby granted, free of charge, to any person obtaining a
  5. * copy of this software and associated documentation files (the "Software"),
  6. * to deal in the Software without restriction, including without limitation
  7. * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  8. * and/or sell copies of the Software, and to permit persons to whom the
  9. * Software is furnished to do so, subject to the following conditions:
  10. *
  11. * The above copyright notice and this permission notice shall be included in
  12. * all copies or substantial portions of the Software.
  13. *
  14. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  17. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  18. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  19. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  20. * DEALINGS IN THE SOFTWARE.
  21. */
  22. // This file is generated, do not edit!
  23. package js.html;
  24. /** Refer to <code><a rel="custom" href="https://developer.mozilla.org/en/XPCOM_Interface_Reference/nsIDOMXPathResult">nsIDOMXPathResult</a></code>
  25. for more detail.<br><br>
  26. Documentation for this class was provided by <a href="https://developer.mozilla.org/en/XPathResult">MDN</a>. */
  27. @:native("XPathResult")
  28. extern class XPathResult
  29. {
  30. /** A result set containing whatever type naturally results from evaluation of the expression. Note that if the result is a node-set then UNORDERED_NODE_ITERATOR_TYPE is always the resulting type. */
  31. static inline var ANY_TYPE : Int = 0;
  32. /** A result node-set containing any single node that matches the expression. The node is not necessarily the first node in the document that matches the expression. */
  33. static inline var ANY_UNORDERED_NODE_TYPE : Int = 8;
  34. /** A result containing a single boolean value. This is useful for example, in an XPath expression using the <code>not()</code> function. */
  35. static inline var BOOLEAN_TYPE : Int = 3;
  36. /** A result node-set containing the first node in the document that matches the expression. */
  37. static inline var FIRST_ORDERED_NODE_TYPE : Int = 9;
  38. /** A result containing a single number. This is useful for example, in an XPath expression using the <code>count()</code> function. */
  39. static inline var NUMBER_TYPE : Int = 1;
  40. /** A result node-set containing all the nodes matching the expression. The nodes in the result set are in the same order that they appear in the document. */
  41. static inline var ORDERED_NODE_ITERATOR_TYPE : Int = 5;
  42. /** A result node-set containing snapshots of all the nodes matching the expression. The nodes in the result set are in the same order that they appear in the document. */
  43. static inline var ORDERED_NODE_SNAPSHOT_TYPE : Int = 7;
  44. /** A result containing a single string. */
  45. static inline var STRING_TYPE : Int = 2;
  46. /** A result node-set containing all the nodes matching the expression. The nodes may not necessarily be in the same order that they appear in the document. */
  47. static inline var UNORDERED_NODE_ITERATOR_TYPE : Int = 4;
  48. /** A result node-set containing snapshots of all the nodes matching the expression. The nodes may not necessarily be in the same order that they appear in the document. */
  49. static inline var UNORDERED_NODE_SNAPSHOT_TYPE : Int = 6;
  50. /** readonly boolean Getter throws DOMException. */
  51. var booleanValue(default,null) : Bool;
  52. /** readonly boolean */
  53. var invalidIteratorState(default,null) : Bool;
  54. /** readonly float Getter throws DOMException. */
  55. var numberValue(default,null) : Float;
  56. /** readonly integer (short) */
  57. var resultType(default,null) : Int;
  58. /** readonly Node Getter throws DOMException. */
  59. var singleNodeValue(default,null) : Node;
  60. /** readonly Integer Getter throws DOMException. */
  61. var snapshotLength(default,null) : Int;
  62. /** readonly String Getter throws DOMException. */
  63. var stringValue(default,null) : String;
  64. function iterateNext() : Node;
  65. function snapshotItem( index : Int ) : Node;
  66. }