1 12 13 package org.w3c.dom.xpath; 14 15 16 import org.w3c.dom.Node ; 17 import org.w3c.dom.DOMException ; 18 19 27 public interface XPathResult { 28 39 public static final short ANY_TYPE = 0; 40 45 public static final short NUMBER_TYPE = 1; 46 51 public static final short STRING_TYPE = 2; 52 57 public static final short BOOLEAN_TYPE = 3; 58 65 public static final short UNORDERED_NODE_ITERATOR_TYPE = 4; 66 71 public static final short ORDERED_NODE_ITERATOR_TYPE = 5; 72 79 public static final short UNORDERED_NODE_SNAPSHOT_TYPE = 6; 80 87 public static final short ORDERED_NODE_SNAPSHOT_TYPE = 7; 88 98 public static final short ANY_UNORDERED_NODE_TYPE = 8; 99 110 public static final short FIRST_ORDERED_NODE_TYPE = 9; 111 112 116 public short getResultType(); 117 118 128 public double getNumberValue() 129 throws XPathException; 130 131 137 public String getStringValue() 138 throws XPathException; 139 140 146 public boolean getBooleanValue() 147 throws XPathException; 148 149 156 public Node getSingleNodeValue() 157 throws XPathException; 158 159 165 public boolean getInvalidIteratorState(); 166 167 176 public int getSnapshotLength() 177 throws XPathException; 178 179 191 public Node iterateNext() 192 throws XPathException, DOMException ; 193 194 209 public Node snapshotItem(int index) 210 throws XPathException; 211 212 } 213 | Popular Tags |