org.apache.xerces.impl.xpath
Class XPath20
java.lang.Object
org.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 1162200 2011-08-26 18:34:10Z sandygao $
- Author:
- Hiranya Jayathilaka, University of Moratuwa
Field Summary |
protected java.lang.String |
fExpression
|
protected org.apache.xerces.xni.NamespaceContext |
fNsContext
|
Constructor Summary |
XPath20(java.lang.String xpath,
SymbolTable symbolTable,
org.apache.xerces.xni.NamespaceContext nsContext)
|
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. |
java.lang.String |
getXPathStrValue()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fExpression
protected final java.lang.String fExpression
fNsContext
protected final org.apache.xerces.xni.NamespaceContext fNsContext
XPath20
public XPath20(java.lang.String xpath,
SymbolTable symbolTable,
org.apache.xerces.xni.NamespaceContext nsContext)
throws XPathException
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 elementattributes
- attributes collection of the current element
- Returns:
- true if the test evaluates successfully and false otherwise
getXPathStrValue
public java.lang.String getXPathStrValue()
Copyright © 1999-2020 The Apache Software Foundation. All Rights Reserved.