submarine.util
Class XPathForSaxon

java.lang.Object
  |
  +--submarine.util.XPathForSaxon
All Implemented Interfaces:
IXPath

public class XPathForSaxon
extends java.lang.Object
implements IXPath


Field Summary
private static javax.xml.parsers.DocumentBuilder docBuilder
           
private static javax.xml.parsers.DocumentBuilderFactory docFactory
           
private static javax.xml.transform.Transformer duplicator
           
static java.lang.String duplicatorXSL
           
private static java.util.Hashtable lastUsed
           
private static java.lang.Object sync
           
private  java.lang.String xpath
           
 
Fields inherited from interface submarine.util.IXPath
XPATH_CLASS_PTY
 
Constructor Summary
XPathForSaxon()
           
 
Method Summary
private  com.icl.saxon.expr.Expression createExpression(com.icl.saxon.om.DocumentInfo doc)
           
private  com.icl.saxon.om.NodeInfo createNodeInfo(org.w3c.dom.Node context)
           
private  void initOnce()
           
 java.util.List selectNodes(org.w3c.dom.Node context)
           
 org.w3c.dom.Node selectSingleNode(org.w3c.dom.Node context)
           
 void setPath(java.lang.String path)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

duplicatorXSL

public static final java.lang.String duplicatorXSL

docFactory

private static javax.xml.parsers.DocumentBuilderFactory docFactory

docBuilder

private static javax.xml.parsers.DocumentBuilder docBuilder

duplicator

private static javax.xml.transform.Transformer duplicator

sync

private static java.lang.Object sync

lastUsed

private static java.util.Hashtable lastUsed

xpath

private java.lang.String xpath
Constructor Detail

XPathForSaxon

public XPathForSaxon()
Method Detail

initOnce

private void initOnce()

setPath

public void setPath(java.lang.String path)
Specified by:
setPath in interface IXPath

createNodeInfo

private com.icl.saxon.om.NodeInfo createNodeInfo(org.w3c.dom.Node context)
                                          throws java.lang.Exception

createExpression

private com.icl.saxon.expr.Expression createExpression(com.icl.saxon.om.DocumentInfo doc)
                                                throws java.lang.Exception

selectNodes

public java.util.List selectNodes(org.w3c.dom.Node context)
                           throws java.lang.Exception
Specified by:
selectNodes in interface IXPath

selectSingleNode

public org.w3c.dom.Node selectSingleNode(org.w3c.dom.Node context)
                                  throws java.lang.Exception
Specified by:
selectSingleNode in interface IXPath

Submarine project. free distribution of this software must include the opensource licence.
Guénolé de Cadoudal.