public class XPathParser extends Object
| Constructor and Description |
|---|
XPathParser()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultPrefix() |
NamespaceContext |
getNamespaceContext() |
protected Query |
parseQuery(TokenStream tokens)
Parses a
Query from the given token stream. |
Query |
parseXPath(String xpath)
Called to parse the XPath query into an S-RAMP XPath AST.
|
protected String |
removeQuotes(String text)
Remove any leading and trailing single-quotes or double-quotes from the supplied text.
|
void |
setDefaultPrefix(String defaultPrefix) |
void |
setNamespaceContext(NamespaceContext namespaceContext) |
public NamespaceContext getNamespaceContext()
public void setNamespaceContext(NamespaceContext namespaceContext)
namespaceContext - the namespaceContext to setpublic String getDefaultPrefix()
public void setDefaultPrefix(String defaultPrefix)
defaultPrefix - the defaultPrefix to setpublic Query parseXPath(String xpath)
xpath - the S-RAMP Query being parsedprotected Query parseQuery(TokenStream tokens)
Query from the given token stream.tokens - the X-Path token streamQueryprotected String removeQuotes(String text)
text - the input textCopyright © 2011–2015 JBoss, a division of Red Hat. All rights reserved.