286N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 286N/A * This code is free software; you can redistribute it and/or modify it 286N/A * under the terms of the GNU General Public License version 2 only, as 286N/A * published by the Free Software Foundation. Oracle designates this 286N/A * particular file as subject to the "Classpath" exception as provided 286N/A * by Oracle in the LICENSE file that accompanied this code. 286N/A * This code is distributed in the hope that it will be useful, but WITHOUT 286N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 286N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 286N/A * version 2 for more details (a copy is included in the LICENSE file that 286N/A * accompanied this code). 286N/A * You should have received a copy of the GNU General Public License version 286N/A * 2 along with this work; if not, write to the Free Software Foundation, 286N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 286N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 286N/A * or visit www.oracle.com if you need additional information or have any 286N/A * This file is available under and governed by the GNU General Public 286N/A * License version 2 only, as published by the Free Software Foundation. 286N/A * However, the following notice accompanied the original version of this 286N/A * file and, per its terms, should not be removed: 286N/A * Copyright (c) 2002 World Wide Web Consortium, 286N/A * (Massachusetts Institute of Technology, Institut National de 286N/A * Recherche en Informatique et en Automatique, Keio University). All 286N/A * Rights Reserved. This program is distributed under the W3C's Software 286N/A * Intellectual Property License. This program is distributed in the 286N/A * hope that it will be useful, but WITHOUT ANY WARRANTY; without even 286N/A * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 286N/A * The <code>XPathExpression</code> interface represents a parsed and resolved 286N/A * Evaluates this XPath expression and returns a result. 286N/A * @param contextNode The <code>context</code> is context node for the 286N/A * evaluation of this XPath expression.If the XPathEvaluator was 286N/A * obtained by casting the <code>Document</code> then this must be 286N/A * owned by the same document and must be a <code>Document</code>, 286N/A * <code>Element</code>, <code>Attribute</code>, <code>Text</code>, 286N/A * <code>CDATASection</code>, <code>Comment</code>, 286N/A * <code>ProcessingInstruction</code>, or <code>XPathNamespace</code> 286N/A * node.If the context node is a <code>Text</code> or a 286N/A * <code>CDATASection</code>, then the context is interpreted as the 286N/A * whole logical text node as seen by XPath, unless the node is empty 286N/A * in which case it may not serve as the XPath context. 286N/A * @param type If a specific <code>type</code> is specified, then the 286N/A * result will be coerced to return the specified type relying on 286N/A * XPath conversions and fail if the desired coercion is not possible. 286N/A * This must be one of the type codes of <code>XPathResult</code>. 286N/A * @param result The <code>result</code> specifies a specific result 286N/A * object which may be reused and returned by this method. If this is 286N/A * specified as <code>null</code>or the implementation does not reuse 286N/A * the specified result, a new result object will be constructed and 286N/A * returned.For XPath 1.0 results, this object will be of type 286N/A * <code>XPathResult</code>. 286N/A * @return The result of the evaluation of the XPath expression.For XPath 286N/A * 1.0 results, this object will be of type <code>XPathResult</code>. 286N/A * @exception XPathException 286N/A * TYPE_ERR: Raised if the result cannot be converted to return the 286N/A * @exception DOMException 286N/A * WRONG_DOCUMENT_ERR: The Node is from a document that is not supported 286N/A * by the XPathEvaluator that created this <code>XPathExpression</code> 286N/A * <br>NOT_SUPPORTED_ERR: The Node is not a type permitted as an XPath 286N/A * context node or the request type is not permitted by this 286N/A * <code>XPathExpression</code>.