< prev index next >

src/java.xml/share/classes/javax/xml/xpath/XPathExpression.java

Print this page




  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package javax.xml.xpath;
  27 
  28 import javax.xml.namespace.QName;
  29 import org.xml.sax.InputSource;
  30 
  31 /**
  32  * {@code XPathExpression} provides access to compiled XPath expressions.

  33  *
  34  * <a name="XPathExpression-evaluation"></a>
  35  * <table border="1" cellpadding="2">

  36  *    <thead>
  37  *      <tr>
  38  *        <th colspan="2">Evaluation of XPath Expressions.</th>

  39  *      </tr>
  40  *    </thead>

  41  *    <tr>
  42  *      <td>context</td>
  43  *      <td>
  44  *        The type of the context is implementation-dependent. If the value is
  45  *        null, the operation must have no dependency on the context, otherwise
  46  *        an XPathExpressionException will be thrown.
  47  *
  48  *        For the purposes of evaluating XPath expressions, a DocumentFragment
  49  *        is treated like a Document node.
  50  *      </td>
  51  *    </tr>
  52  *    <tr>
  53  *      <td>variables</td>
  54  *      <td>
  55  *        If the expression contains a variable reference, its value will be found through the {@link XPathVariableResolver}.
  56  *        An {@link XPathExpressionException} is raised if the variable resolver is undefined or
  57  *        the resolver returns {@code null} for the variable.
  58  *        The value of a variable must be immutable through the course of any single evaluation.
  59  *      </td>
  60  *    </tr>




  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package javax.xml.xpath;
  27 
  28 import javax.xml.namespace.QName;
  29 import org.xml.sax.InputSource;
  30 
  31 /**
  32  * {@code XPathExpression} provides access to compiled XPath expressions.
  33  * The XPath evaluation is affected by the factors described in the following table. 
  34  *
  35  * <a id="XPathExpression-evaluation"></a>
  36  * <table class="striped">
  37  *    <caption>Evaluation of XPath Expressions</caption>
  38  *    <thead>
  39  *      <tr>
  40  *        <th>Factor</th>
  41  *        <th>Behavior</th>
  42  *      </tr>
  43  *    </thead>
  44  *    <tbody>
  45  *    <tr>
  46  *      <td>context</td>
  47  *      <td>
  48  *        The type of the context is implementation-dependent. If the value is
  49  *        null, the operation must have no dependency on the context, otherwise
  50  *        an XPathExpressionException will be thrown.
  51  *
  52  *        For the purposes of evaluating XPath expressions, a DocumentFragment
  53  *        is treated like a Document node.
  54  *      </td>
  55  *    </tr>
  56  *    <tr>
  57  *      <td>variables</td>
  58  *      <td>
  59  *        If the expression contains a variable reference, its value will be found through the {@link XPathVariableResolver}.
  60  *        An {@link XPathExpressionException} is raised if the variable resolver is undefined or
  61  *        the resolver returns {@code null} for the variable.
  62  *        The value of a variable must be immutable through the course of any single evaluation.
  63  *      </td>
  64  *    </tr>


< prev index next >