fr.tireme.shared.xml.transform
Class XPATHSelection

java.lang.Object
  extended by fr.tireme.shared.xml.transform.XPATHSelection

public class XPATHSelection
extends java.lang.Object

Management of selection using Java 1.5 features.

Version:
$Revision: 1.9 $
Author:
Pierre Attar

Constructor Summary
XPATHSelection()
          Constructor for the XPATHSelection object
 
Method Summary
 org.w3c.dom.traversal.NodeIterator selectNodeIterator(org.w3c.dom.Node n, java.lang.String path)
          Select a set of nodes using the XPath expression provided
 org.w3c.dom.Node selectSingleNode(org.w3c.dom.Node n, java.lang.String path)
          Select a single node using the XPath expression provided
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPATHSelection

public XPATHSelection()
               throws SDExcept
Constructor for the XPATHSelection object

Throws:
SDExcept
Method Detail

selectNodeIterator

public org.w3c.dom.traversal.NodeIterator selectNodeIterator(org.w3c.dom.Node n,
                                                             java.lang.String path)
                                                      throws StandardException
Select a set of nodes using the XPath expression provided

Parameters:
n - root node where to apply selection
path - XPAth valid expression
Returns:
node set as a NodeIterator
Throws:
StandardException

selectSingleNode

public org.w3c.dom.Node selectSingleNode(org.w3c.dom.Node n,
                                         java.lang.String path)
                                  throws StandardException
Select a single node using the XPath expression provided

Parameters:
n - root node where to apply selection
path - XPAth valid expression
Returns:
Selected node
Throws:
StandardException