/** * Gets the string value. */ public String getStringValue() { if (resultType != STRING_TYPE) { throw createXPathException (XPathException.TYPE_ERR, "xpath.invalid.result.type", new Object[] {(int) resultType}); } return stringValue; }
/** * Gets the boolean value. */ public boolean getBooleanValue() { if (resultType != BOOLEAN_TYPE) { throw createXPathException (XPathException.TYPE_ERR, "xpath.invalid.result.type", new Object[] {(int) resultType}); } return booleanValue; }
/** * Gets the boolean value. */ public boolean getBooleanValue() { if (resultType != BOOLEAN_TYPE) { throw createXPathException (XPathException.TYPE_ERR, "xpath.invalid.result.type", new Object[] {(int) resultType}); } return booleanValue; }
/** * Gets the number value. */ public double getNumberValue() { if (resultType != NUMBER_TYPE) { throw createXPathException (XPathException.TYPE_ERR, "xpath.invalid.result.type", new Object[] {(int) resultType}); } return numberValue; }
/** * Gets the string value. */ public String getStringValue() { if (resultType != STRING_TYPE) { throw createXPathException (XPathException.TYPE_ERR, "xpath.invalid.result.type", new Object[] {(int) resultType}); } return stringValue; }
/** * Gets the single node value. */ public Node getSingleNodeValue() { if (resultType != ANY_UNORDERED_NODE_TYPE && resultType != FIRST_ORDERED_NODE_TYPE) { throw createXPathException (XPathException.TYPE_ERR, "xpath.invalid.result.type", new Object[] {(int) resultType}); } return singleNodeValue; }
/** * Gets the number value. */ public double getNumberValue() { if (resultType != NUMBER_TYPE) { throw createXPathException (XPathException.TYPE_ERR, "xpath.invalid.result.type", new Object[] {(int) resultType}); } return numberValue; }
/** * Gets the single node value. */ public Node getSingleNodeValue() { if (resultType != ANY_UNORDERED_NODE_TYPE && resultType != FIRST_ORDERED_NODE_TYPE) { throw createXPathException (XPathException.TYPE_ERR, "xpath.invalid.result.type", new Object[] {(int) resultType}); } return singleNodeValue; }
/** * Gets the string value. */ public String getStringValue() { if (resultType != STRING_TYPE) { throw createXPathException (XPathException.TYPE_ERR, "xpath.invalid.result.type", new Object[] { new Integer(resultType) }); } return stringValue; }
/** * Gets the boolean value. */ public boolean getBooleanValue() { if (resultType != BOOLEAN_TYPE) { throw createXPathException (XPathException.TYPE_ERR, "xpath.invalid.result.type", new Object[] { new Integer(resultType) }); } return booleanValue; }
/** * Returns the length of the snapshot. */ public int getSnapshotLength() { if (resultType != UNORDERED_NODE_SNAPSHOT_TYPE && resultType != ORDERED_NODE_SNAPSHOT_TYPE) { throw createXPathException (XPathException.TYPE_ERR, "xpath.invalid.result.type", new Object[] {(int) resultType}); } return iterator.getLength(); }
/** * Gets the number value. */ public double getNumberValue() { if (resultType != NUMBER_TYPE) { throw createXPathException (XPathException.TYPE_ERR, "xpath.invalid.result.type", new Object[] { new Integer(resultType) }); } return numberValue; }
/** * Returns the length of the snapshot. */ public int getSnapshotLength() { if (resultType != UNORDERED_NODE_SNAPSHOT_TYPE && resultType != ORDERED_NODE_SNAPSHOT_TYPE) { throw createXPathException (XPathException.TYPE_ERR, "xpath.invalid.result.type", new Object[] {(int) resultType}); } return iterator.getLength(); }
/** * Gets the single node value. */ public Node getSingleNodeValue() { if (resultType != ANY_UNORDERED_NODE_TYPE && resultType != FIRST_ORDERED_NODE_TYPE) { throw createXPathException (XPathException.TYPE_ERR, "xpath.invalid.result.type", new Object[] { new Integer(resultType) }); } return singleNodeValue; }
/** * Returns the <code>i</code>th item in the snapshot. */ public Node snapshotItem(int i) { if (resultType != UNORDERED_NODE_SNAPSHOT_TYPE && resultType != ORDERED_NODE_SNAPSHOT_TYPE) { throw createXPathException (XPathException.TYPE_ERR, "xpath.invalid.result.type", new Object[] {(int) resultType}); } return iterator.item(i); } }
/** * Returns the <code>i</code>th item in the snapshot. */ public Node snapshotItem(int i) { if (resultType != UNORDERED_NODE_SNAPSHOT_TYPE && resultType != ORDERED_NODE_SNAPSHOT_TYPE) { throw createXPathException (XPathException.TYPE_ERR, "xpath.invalid.result.type", new Object[] {(int) resultType}); } return iterator.item(i); } }
/** * <b>DOM</b>: Implement * {@link org.w3c.dom.xpath.XPathResult#iterateNext()}. */ public Node iterateNext() { if (resultType != UNORDERED_NODE_ITERATOR_TYPE && resultType != ORDERED_NODE_ITERATOR_TYPE) { throw createXPathException (XPathException.TYPE_ERR, "xpath.invalid.result.type", new Object[] {(int) resultType}); } return iterator.item(iteratorPosition++); }
/** * Returns the length of the snapshot. */ public int getSnapshotLength() { if (resultType != UNORDERED_NODE_SNAPSHOT_TYPE && resultType != ORDERED_NODE_SNAPSHOT_TYPE) { throw createXPathException (XPathException.TYPE_ERR, "xpath.invalid.result.type", new Object[] { new Integer(resultType) }); } return iterator.getLength(); }
/** * <b>DOM</b>: Implement * {@link org.w3c.dom.xpath.XPathResult#iterateNext()}. */ public Node iterateNext() { if (resultType != UNORDERED_NODE_ITERATOR_TYPE && resultType != ORDERED_NODE_ITERATOR_TYPE) { throw createXPathException (XPathException.TYPE_ERR, "xpath.invalid.result.type", new Object[] { new Integer(resultType) }); } return iterator.item(iteratorPosition++); }
/** * Returns the <code>i</code>th item in the snapshot. */ public Node snapshotItem(int i) { if (resultType != UNORDERED_NODE_SNAPSHOT_TYPE && resultType != ORDERED_NODE_SNAPSHOT_TYPE) { throw createXPathException (XPathException.TYPE_ERR, "xpath.invalid.result.type", new Object[] { new Integer(resultType) }); } return iterator.item(i); } }