|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jafer.query.converter.Converter
public abstract class Converter
Abstract base class that provides basic XML routines and Jafer Node processing
Field Summary | |
---|---|
private static org.w3c.dom.Node |
contextNode
Stores a reference to the node last queried by XPath |
private static org.apache.xpath.CachedXPathAPI |
xPathAPI
Stores a reference to the xpathAPI last used |
Constructor Summary | |
---|---|
Converter()
|
Method Summary | |
---|---|
protected static int |
findNotChild(org.w3c.dom.Node node)
Finds the position of the NOT node from the specified node |
protected static org.w3c.dom.Node |
getFirstChild(org.w3c.dom.Node sourceNode)
Utility method to get the first c for the supplied node |
protected static java.lang.String |
getNodeValue(org.w3c.dom.Node node)
Utility method to get the value of the node |
protected static org.w3c.dom.Node |
getSecondChild(org.w3c.dom.Node sourceNode)
Utility method to get the second child for the supplied node |
protected static org.w3c.dom.Node |
selectNode(org.w3c.dom.Node sourceNode,
java.lang.String XPath)
This method selects the node specified by the xpath from the source node |
protected static org.w3c.dom.NodeList |
selectNodeList(org.w3c.dom.Node sourceNode,
java.lang.String XPath)
This method selects the nodes specified by the xpath from the source node |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static org.apache.xpath.CachedXPathAPI xPathAPI
private static org.w3c.dom.Node contextNode
Constructor Detail |
---|
public Converter()
Method Detail |
---|
protected static org.w3c.dom.Node getFirstChild(org.w3c.dom.Node sourceNode) throws QueryException
sourceNode
- The node to process
QueryException
protected static org.w3c.dom.Node getSecondChild(org.w3c.dom.Node sourceNode) throws QueryException
sourceNode
- The node to process
QueryException
protected static org.w3c.dom.Node selectNode(org.w3c.dom.Node sourceNode, java.lang.String XPath) throws QueryException
sourceNode
- The node to select formXPath
- The XPath consition used to select the node
QueryException
protected static org.w3c.dom.NodeList selectNodeList(org.w3c.dom.Node sourceNode, java.lang.String XPath) throws QueryException
sourceNode
- The node to select formXPath
- The XPath consition used to select the nodes
QueryException
protected static java.lang.String getNodeValue(org.w3c.dom.Node node) throws QueryException
node
- The node to extracy the value from
QueryException
protected static int findNotChild(org.w3c.dom.Node node) throws QueryException
node
- The node to process
QueryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |