34 * Rights Reserved. This program is distributed under the W3C's Software
35 * Intellectual Property License. This program is distributed in the
36 * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
37 * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
38 * PURPOSE.
39 * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
40 */
41
42 package org.w3c.dom.xpath;
43
44
45 import org.w3c.dom.Node;
46 import org.w3c.dom.DOMException;
47
48 /**
49 * The <code>XPathResult</code> interface represents the result of the
50 * evaluation of an XPath 1.0 expression within the context of a particular
51 * node. Since evaluation of an XPath expression can result in various
52 * result types, this object makes it possible to discover and manipulate
53 * the type and value of the result.
54 * <p>See also the <a href='http://www.w3.org/2002/08/WD-DOM-Level-3-XPath-20020820'>Document Object Model (DOM) Level 3 XPath Specification</a>.
55 */
56 public interface XPathResult {
57 // XPathResultType
58 /**
59 * This code does not represent a specific type. An evaluation of an XPath
60 * expression will never produce this type. If this type is requested,
61 * then the evaluation returns whatever type naturally results from
62 * evaluation of the expression.
63 * <br>If the natural result is a node set when <code>ANY_TYPE</code> was
64 * requested, then <code>UNORDERED_NODE_ITERATOR_TYPE</code> is always
65 * the resulting type. Any other representation of a node set must be
66 * explicitly requested.
67 */
68 public static final short ANY_TYPE = 0;
69 /**
70 * The result is a number as defined by . Document modification does not
71 * invalidate the number, but may mean that reevaluation would not yield
72 * the same number.
73 */
74 public static final short NUMBER_TYPE = 1;
|
34 * Rights Reserved. This program is distributed under the W3C's Software
35 * Intellectual Property License. This program is distributed in the
36 * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
37 * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
38 * PURPOSE.
39 * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
40 */
41
42 package org.w3c.dom.xpath;
43
44
45 import org.w3c.dom.Node;
46 import org.w3c.dom.DOMException;
47
48 /**
49 * The <code>XPathResult</code> interface represents the result of the
50 * evaluation of an XPath 1.0 expression within the context of a particular
51 * node. Since evaluation of an XPath expression can result in various
52 * result types, this object makes it possible to discover and manipulate
53 * the type and value of the result.
54 * <p>See also the <a href='https://www.w3.org/TR/DOM-Level-3-XPath/'>Document Object Model (DOM) Level 3 XPath Specification</a>.
55 */
56 public interface XPathResult {
57 // XPathResultType
58 /**
59 * This code does not represent a specific type. An evaluation of an XPath
60 * expression will never produce this type. If this type is requested,
61 * then the evaluation returns whatever type naturally results from
62 * evaluation of the expression.
63 * <br>If the natural result is a node set when <code>ANY_TYPE</code> was
64 * requested, then <code>UNORDERED_NODE_ITERATOR_TYPE</code> is always
65 * the resulting type. Any other representation of a node set must be
66 * explicitly requested.
67 */
68 public static final short ANY_TYPE = 0;
69 /**
70 * The result is a number as defined by . Document modification does not
71 * invalidate the number, but may mean that reevaluation would not yield
72 * the same number.
73 */
74 public static final short NUMBER_TYPE = 1;
|