|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jasperreports.engine.data.JRAbstractTextDataSource net.sf.jasperreports.engine.data.AbstractXmlDataSource net.sf.jasperreports.engine.data.JaxenXmlDataSource
public class JaxenXmlDataSource
Constructor Summary | |
---|---|
JaxenXmlDataSource(org.w3c.dom.Document document)
Creates the data source by parsing the xml document from the given file. |
|
JaxenXmlDataSource(org.w3c.dom.Document document,
java.lang.String selectExpression)
Creates the data source by parsing the xml document from the given file. |
|
JaxenXmlDataSource(java.io.File file)
Creates the data source by parsing the xml document from the given file. |
|
JaxenXmlDataSource(java.io.File file,
java.lang.String selectExpression)
Creates the data source by parsing the xml document from the given file. |
|
JaxenXmlDataSource(java.io.InputStream in)
Creates the data source by parsing the xml document from the given input stream. |
|
JaxenXmlDataSource(java.io.InputStream in,
java.lang.String selectExpression)
Creates the data source by parsing the xml document from the given input stream. |
|
JaxenXmlDataSource(java.lang.String uri)
Creates the data source by parsing the xml document from the given system identifier (URI). |
|
JaxenXmlDataSource(java.lang.String uri,
java.lang.String selectExpression)
Creates the data source by parsing the xml document from the given system identifier (URI). |
Method Summary | |
---|---|
AbstractXmlDataSource |
dataSource(java.lang.String selectExpr)
Creates a sub data source using as root document the document used by "this" data source. |
org.w3c.dom.Node |
getCurrentNode()
|
java.lang.Object |
getSelectObject(org.w3c.dom.Node currentNode,
java.lang.String expression)
|
void |
moveFirst()
Moves back to the first element in the data source. |
boolean |
next()
Tries to position the cursor on the next element in the data source. |
void |
setDetectXmlNamespaces(boolean detectXmlNamespaces)
|
void |
setDocumentBuilderFactory(javax.xml.parsers.DocumentBuilderFactory documentBuilderFactory)
|
void |
setXmlNamespaceMap(java.util.Map<java.lang.String,java.lang.String> xmlNamespaceMap)
|
AbstractXmlDataSource |
subDataSource(java.lang.String selectExpr)
Creates a sub data source using the current node (record) as the root of the document. |
org.w3c.dom.Document |
subDocument()
Creates a document using the current node as root. |
Methods inherited from class net.sf.jasperreports.engine.data.AbstractXmlDataSource |
---|
dataSource, getFieldValue, getText, subDataSource |
Methods inherited from class net.sf.jasperreports.engine.data.JRAbstractTextDataSource |
---|
convertNumber, convertStringValue, getConvertBean, getDatePattern, getFormattedDate, getFormattedNumber, getLocale, getNumberPattern, getTimeZone, setDatePattern, setLocale, setLocale, setNumberPattern, setTextAttributes, setTimeZone, setTimeZone |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JaxenXmlDataSource(org.w3c.dom.Document document) throws JRException
document
- the document
JRException
- if the data source cannot be createdpublic JaxenXmlDataSource(org.w3c.dom.Document document, java.lang.String selectExpression) throws JRException
document
- the documentselectExpression
- the XPath select expression
JRException
- if the data source cannot be createdpublic JaxenXmlDataSource(java.io.InputStream in) throws JRException
in
- the input stream
JRException
JRXmlDataSource.JRXmlDataSource(Document)
public JaxenXmlDataSource(java.io.InputStream in, java.lang.String selectExpression) throws JRException
JRException
JRXmlDataSource.JRXmlDataSource(InputStream)
,
JRXmlDataSource.JRXmlDataSource(Document, String)
public JaxenXmlDataSource(java.lang.String uri) throws JRException
If the system identifier is a URL, it must be full resolved.
uri
- the system identifier
JRException
JRXmlDataSource.JRXmlDataSource(Document)
public JaxenXmlDataSource(java.lang.String uri, java.lang.String selectExpression) throws JRException
JRException
JRXmlDataSource.JRXmlDataSource(String)
,
JRXmlDataSource.JRXmlDataSource(Document, String)
public JaxenXmlDataSource(java.io.File file) throws JRException
file
- the file
JRException
JRXmlDataSource.JRXmlDataSource(Document)
public JaxenXmlDataSource(java.io.File file, java.lang.String selectExpression) throws JRException
JRException
JRXmlDataSource.JRXmlDataSource(File)
,
JRXmlDataSource.JRXmlDataSource(Document, String)
Method Detail |
---|
public void moveFirst() throws JRException
JRRewindableDataSource
JRException
public boolean next() throws JRException
JRDataSource
JRException
- if any error occurs while trying to move to the next elementpublic org.w3c.dom.Document subDocument() throws JRException
AbstractXmlDataSource
subDocument
in class AbstractXmlDataSource
JRException
public void setXmlNamespaceMap(java.util.Map<java.lang.String,java.lang.String> xmlNamespaceMap) throws JRException
JRException
public void setDetectXmlNamespaces(boolean detectXmlNamespaces)
public void setDocumentBuilderFactory(javax.xml.parsers.DocumentBuilderFactory documentBuilderFactory)
public org.w3c.dom.Node getCurrentNode()
getCurrentNode
in class AbstractXmlDataSource
public java.lang.Object getSelectObject(org.w3c.dom.Node currentNode, java.lang.String expression) throws JRException
getSelectObject
in class AbstractXmlDataSource
JRException
public AbstractXmlDataSource subDataSource(java.lang.String selectExpr) throws JRException
AbstractXmlDataSource
subDataSource
in class AbstractXmlDataSource
selectExpr
- the XPath select expression
JRException
- if the sub data source couldn't be createdJRXmlDataSource.JRXmlDataSource(Document, String)
public AbstractXmlDataSource dataSource(java.lang.String selectExpr) throws JRException
AbstractXmlDataSource
dataSource
in class AbstractXmlDataSource
selectExpr
- the XPath select expression
JRException
- if the sub data source couldn't be createdJRXmlDataSource.JRXmlDataSource(Document, String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |