|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.n52.security.common.xml.XMLPathCtx
public class XMLPathCtx
Class XMLPathCtx encapsulates context informations for xpath expressions.
Use this class to create new XMLPath objectes and combinations of them. This class wraps the javax.xml.xpath package with performance improvments and simpler useage.
Constructor Summary | |
---|---|
protected |
XMLPathCtx(org.n52.security.common.xml.XMLPathCtx.XPathPool xPathPool)
Constructor creates a new instance. |
Method Summary | |
---|---|
XMLPathCtx |
addNamespace(java.lang.String prefix,
java.lang.String namespace)
Method adds prefix to namespace mapping, so the prefix can be used to qualify xpath expressions. |
static XMLPathCtx |
createNew()
Method creates a new XMLPathCtx instance. |
XMLPath |
findIn(org.w3c.dom.Document doc)
Method findIn constructs a new XMLPath starting in a Document source. |
XMLPath |
findIn(org.xml.sax.InputSource source)
Method findIn constructs a new XMLPath starting in a InputSource source. |
XMLPath |
findIn(org.w3c.dom.Node node)
Method findIn constructs a new XMLPath starting in a Node source. |
XMLPath |
findIn(org.w3c.dom.NodeList nodeList)
Method findIn constructs a new XMLPath starting in a NodeList source. |
XMLPath |
findIn(java.lang.String source)
Method findIn constructs a new XMLPath starting in a string source. |
protected javax.xml.xpath.XPathExpression |
lookUp(java.lang.String xpath)
Method looks up an XPathExpression. |
XMLPathCtx |
register(java.lang.String xpath)
Method registers an xpath as precompiled XPathExpression. |
XMLPathCtx |
register(java.lang.String name,
java.lang.String xpath)
Method registers an xpath as precompiled XPathExpression with a special name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected XMLPathCtx(org.n52.security.common.xml.XMLPathCtx.XPathPool xPathPool)
xPathPool
- the xPathPool.Method Detail |
---|
public XMLPathCtx addNamespace(java.lang.String prefix, java.lang.String namespace)
prefix
- the prefix.namespace
- the namespace.
public static XMLPathCtx createNew()
public XMLPath findIn(org.w3c.dom.Document doc)
doc
- the doc.
public XMLPath findIn(org.w3c.dom.Node node)
node
- the node.
public XMLPath findIn(org.w3c.dom.NodeList nodeList)
nodeList
- the nodeList.
public XMLPath findIn(org.xml.sax.InputSource source)
source
- the source.
public XMLPath findIn(java.lang.String source)
source
- the source.
protected javax.xml.xpath.XPathExpression lookUp(java.lang.String xpath)
xpath
- the xpath.
public XMLPathCtx register(java.lang.String xpath)
xpath
- the xpath.
public XMLPathCtx register(java.lang.String name, java.lang.String xpath)
name
- the name.xpath
- the xpath.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |