|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.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(String expression)
|
protected void |
createNamespaceElement(Node contextNode,
String expression)
|
Map<String,String> |
extractXmlNamespaces(Node contextNode)
|
boolean |
getDetectXmlNamespaces()
|
Map<String,String> |
getXmlNamespaceMap()
|
NodeList |
selectNodeList(Node contextNode,
String expression)
Selects a node list by evaluating an XPath expression on a context node. |
Object |
selectObject(Node contextNode,
String expression)
Selects an object by evaluating an XPath expression on a context node. |
void |
setDetectXmlNamespaces(boolean detectXmlNamespaces)
|
void |
setXmlNamespaceMap(Map<String,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 Map<String,String> getXmlNamespaceMap()
public void setXmlNamespaceMap(Map<String,String> xmlNamespaceMap)
throws JRException
JRExceptionpublic boolean getDetectXmlNamespaces()
public void setDetectXmlNamespaces(boolean detectXmlNamespaces)
protected void createNamespaceElement(Node contextNode,
String expression)
throws JRException
JRException
public NodeList selectNodeList(Node contextNode,
String expression)
throws JRException
JRXPathExecuter
selectNodeList in interface JRXPathExecuterselectNodeList in class XalanXPathExecutercontextNode - the context node (a document can also be used)expression - the XPath expression
JRException - if the XPath evaluation failed
public Object selectObject(Node contextNode,
String expression)
throws JRException
JRXPathExecuterjava.lang.String, java.lang.Number or java.lang.Boolean.
selectObject in interface JRXPathExecuterselectObject in class XalanXPathExecutercontextNode - the context node (a document can also be used)expression - the XPath expression
JRException - if the XPath evaluation failedprotected boolean containsPrefixes(String expression)
public Map<String,String> extractXmlNamespaces(Node contextNode)
throws JRException
JRException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||