|
NetKernel APIs |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ten60.netkernel.xml.util.FastXPath
public class FastXPath
A Fast implementation XPath for simple expressions.
Evaluation shows it is an order of magnitude faster than xalan and will
work for about 2/3 of expressions in normal usage.
It will evaluate xpaths of the forms:
| Constructor Summary | |
|---|---|
FastXPath()
|
|
| Method Summary | |
|---|---|
static org.apache.xpath.NodeSet |
eval(org.w3c.dom.Node aContextNode,
java.lang.String aXPath)
Returns a nodeset of matching nodes for the evaluation of the xpath at the given context node |
static boolean |
isSuitable(java.lang.String aXPath)
Returns true if it is possible to evaluate the xpath using this engine |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FastXPath()
| Method Detail |
|---|
public static org.apache.xpath.NodeSet eval(org.w3c.dom.Node aContextNode,
java.lang.String aXPath)
throws javax.xml.transform.TransformerException
javax.xml.transform.TransformerExceptionpublic static boolean isSuitable(java.lang.String aXPath)
|
NetKernel APIs |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||