|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jasperreports.engine.util.xml.XalanXPathExecuter net.sf.jasperreports.engine.util.xml.XalanNsAwareXPathExecuter
public class XalanNsAwareXPathExecuter
XPath executer implementation that uses Apache Xalan.
Constructor Summary | |
---|---|
XalanNsAwareXPathExecuter()
Default constructor. |
Method Summary | |
---|---|
protected boolean |
containsPrefixes(java.lang.String expression)
|
protected void |
createNamespaceElement(org.w3c.dom.Node contextNode,
java.lang.String expression)
|
java.util.Map<java.lang.String,java.lang.String> |
extractXmlNamespaces(org.w3c.dom.Node contextNode)
|
boolean |
getDetectXmlNamespaces()
|
java.util.Map<java.lang.String,java.lang.String> |
getXmlNamespaceMap()
|
org.w3c.dom.NodeList |
selectNodeList(org.w3c.dom.Node contextNode,
java.lang.String expression)
Selects a node list by evaluating an XPath expression on a context node. |
java.lang.Object |
selectObject(org.w3c.dom.Node contextNode,
java.lang.String expression)
Selects an object by evaluating an XPath expression on a context node. |
void |
setDetectXmlNamespaces(boolean detectXmlNamespaces)
|
void |
setXmlNamespaceMap(java.util.Map<java.lang.String,java.lang.String> xmlNamespaceMap)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XalanNsAwareXPathExecuter()
Method Detail |
---|
public java.util.Map<java.lang.String,java.lang.String> getXmlNamespaceMap()
public void setXmlNamespaceMap(java.util.Map<java.lang.String,java.lang.String> xmlNamespaceMap) throws JRException
JRException
public boolean getDetectXmlNamespaces()
public void setDetectXmlNamespaces(boolean detectXmlNamespaces)
protected void createNamespaceElement(org.w3c.dom.Node contextNode, java.lang.String expression) throws JRException
JRException
public org.w3c.dom.NodeList selectNodeList(org.w3c.dom.Node contextNode, java.lang.String expression) throws JRException
JRXPathExecuter
selectNodeList
in interface JRXPathExecuter
selectNodeList
in class XalanXPathExecuter
contextNode
- the context node (a document can also be used)expression
- the XPath expression
JRException
- if the XPath evaluation failedpublic java.lang.Object selectObject(org.w3c.dom.Node contextNode, java.lang.String expression) throws JRException
JRXPathExecuter
java.lang.String
, java.lang.Number
or java.lang.Boolean
.
selectObject
in interface JRXPathExecuter
selectObject
in class XalanXPathExecuter
contextNode
- the context node (a document can also be used)expression
- the XPath expression
JRException
- if the XPath evaluation failedprotected boolean containsPrefixes(java.lang.String expression)
public java.util.Map<java.lang.String,java.lang.String> extractXmlNamespaces(org.w3c.dom.Node contextNode) throws JRException
JRException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |