org.kemet.impl.grammar.toolbox
Class XMLQuery

java.lang.Object
  extended by org.kemet.impl.grammar.toolbox.XMLQuery

public class XMLQuery
extends java.lang.Object

Since:
0.2
Author:
fabricemaupin

XMLQuery : manage XML Queries.


Constructor Summary
XMLQuery(java.lang.String XMLfileName)
           initialize the XML Query manager
 
Method Summary
 org.w3c.dom.NodeList evaluate(java.lang.String expression, java.lang.Object src)
           evaluate xPath expression.
 org.w3c.dom.Document getDocument()
           return the current document.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLQuery

public XMLQuery(java.lang.String XMLfileName)
         throws KemetAPIException

initialize the XML Query manager

Parameters:
XMLfileName - name of XML File
Throws:
KemetAPIException
Since:
0.2
Method Detail

evaluate

public org.w3c.dom.NodeList evaluate(java.lang.String expression,
                                     java.lang.Object src)
                              throws KemetAPIException

evaluate xPath expression.

Parameters:
expression - XPath expression
src - node parent
Returns:
list of extracted nodes
Throws:
KemetAPIException
Since:
0.2

getDocument

public org.w3c.dom.Document getDocument()

return the current document.

Returns:
current document
Since:
0.2


Copyright © 2008 F. MAUPIN. All Rights Reserved.