submarine.pages
Class WSPFunctions
java.lang.Object
|
+--submarine.pages.WSPFunctions
- Direct Known Subclasses:
- BasePoolerPage, BaseWriterPage, TestPTXMonitor
- public class WSPFunctions
- extends java.lang.Object
Field Summary |
org.w3c.dom.Document |
document
|
Method Summary |
protected org.w3c.dom.Node |
CopyOf(org.w3c.dom.Node node,
java.lang.String xpath)
|
protected org.w3c.dom.Node |
CopyOf(java.lang.String value,
java.lang.String xpath)
|
protected org.w3c.dom.Attr |
createAttribute(java.lang.String name,
java.lang.String value)
|
protected org.w3c.dom.CDATASection |
createCDATASection(java.lang.String text)
|
protected org.w3c.dom.Comment |
createComment(java.lang.String text)
|
protected org.w3c.dom.Document |
createDocument(org.w3c.dom.Node[] nodes)
|
protected org.w3c.dom.Element |
createElement(java.lang.String tag,
org.w3c.dom.Attr[] attributes,
org.w3c.dom.Node[] nodes)
|
protected org.w3c.dom.Element |
createElement(java.lang.String tag,
org.w3c.dom.Attr[] attributes,
org.w3c.dom.Node[] nodes,
java.lang.String nsUri)
|
protected org.w3c.dom.DocumentFragment |
createFragment(org.w3c.dom.Node[] nodes)
|
protected org.w3c.dom.Node[] |
getPreparedNodes(org.w3c.dom.Node node)
Returns a node list from a node according to certains rules :
-DocumentFragment are replaced by their children
-DocumentNode are replaced by their children
|
protected org.w3c.dom.Node |
ParseFile(java.lang.String file,
java.lang.String xpath)
|
private java.util.List |
selectXPath(org.w3c.dom.Node node,
java.lang.String xpath)
|
protected org.w3c.dom.Node |
Transform(org.w3c.dom.Node source,
org.w3c.dom.Node xsl,
java.lang.String[] params)
Transform the DOM source with the xsl template using the params as parameters.
params is an array of string comming by pair. |
protected java.lang.String |
ValueOf(org.w3c.dom.Node node,
java.lang.String xpath)
|
protected java.lang.String |
ValueOf(java.lang.String text,
java.lang.String xpath)
|
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
document
public org.w3c.dom.Document document
WSPFunctions
public WSPFunctions()
createAttribute
protected org.w3c.dom.Attr createAttribute(java.lang.String name,
java.lang.String value)
createElement
protected org.w3c.dom.Element createElement(java.lang.String tag,
org.w3c.dom.Attr[] attributes,
org.w3c.dom.Node[] nodes)
createElement
protected org.w3c.dom.Element createElement(java.lang.String tag,
org.w3c.dom.Attr[] attributes,
org.w3c.dom.Node[] nodes,
java.lang.String nsUri)
createFragment
protected org.w3c.dom.DocumentFragment createFragment(org.w3c.dom.Node[] nodes)
createComment
protected org.w3c.dom.Comment createComment(java.lang.String text)
createCDATASection
protected org.w3c.dom.CDATASection createCDATASection(java.lang.String text)
getPreparedNodes
protected org.w3c.dom.Node[] getPreparedNodes(org.w3c.dom.Node node)
- Returns a node list from a node according to certains rules :
-DocumentFragment are replaced by their children
-DocumentNode are replaced by their children
createDocument
protected org.w3c.dom.Document createDocument(org.w3c.dom.Node[] nodes)
CopyOf
protected org.w3c.dom.Node CopyOf(java.lang.String value,
java.lang.String xpath)
selectXPath
private java.util.List selectXPath(org.w3c.dom.Node node,
java.lang.String xpath)
CopyOf
protected org.w3c.dom.Node CopyOf(org.w3c.dom.Node node,
java.lang.String xpath)
ValueOf
protected java.lang.String ValueOf(java.lang.String text,
java.lang.String xpath)
ValueOf
protected java.lang.String ValueOf(org.w3c.dom.Node node,
java.lang.String xpath)
ParseFile
protected org.w3c.dom.Node ParseFile(java.lang.String file,
java.lang.String xpath)
Transform
protected org.w3c.dom.Node Transform(org.w3c.dom.Node source,
org.w3c.dom.Node xsl,
java.lang.String[] params)
- Transform the DOM source with the xsl template using the params as parameters.
params is an array of string comming by pair. The first one is the name of
the parameter ans the following one its value.