org.apache.xerces.impl.xpath
Class XPath20

java.lang.Object
  extended byorg.apache.xerces.impl.xpath.XPath20

public class XPath20
extends java.lang.Object

Bare minimal XPath 2.0 implementation for schema type alternatives.

Version:
$Id: XPath20.java 889369 2009-12-10 19:00:55Z knoaman $
Author:
Hiranya Jayathilaka, University of Moratuwa

Field Summary
protected  org.apache.xerces.xni.NamespaceContext fContext
           
protected  java.lang.String fExpression
           
 
Constructor Summary
XPath20(java.lang.String xpath, SymbolTable symbolTable, org.apache.xerces.xni.NamespaceContext context)
           
 
Method Summary
 boolean evaluateTest(org.apache.xerces.xni.QName element, org.apache.xerces.xni.XMLAttributes attributes)
          Evaluate the test XPath expression using the attribute information and element information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fExpression

protected final java.lang.String fExpression

fContext

protected final org.apache.xerces.xni.NamespaceContext fContext
Constructor Detail

XPath20

public XPath20(java.lang.String xpath,
               SymbolTable symbolTable,
               org.apache.xerces.xni.NamespaceContext context)
        throws XPathException
Method Detail

evaluateTest

public boolean evaluateTest(org.apache.xerces.xni.QName element,
                            org.apache.xerces.xni.XMLAttributes attributes)
Evaluate the test XPath expression using the attribute information and element information.

Parameters:
element - QName of the current element
attributes - attributes collection of the current element
Returns:
true if the test evaluates successfully and false otherwise


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.