public class JaxenXmlDataSource extends AbstractXmlDataSource
| Constructor and Description |
|---|
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).
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
dataSource, getFieldValue, getText, subDataSourceconvertNumber, convertStringValue, getConvertBean, getDatePattern, getFormattedDate, getFormattedNumber, getLocale, getNumberPattern, getTimeZone, setDatePattern, setLocale, setLocale, setNumberPattern, setTextAttributes, setTimeZone, setTimeZonepublic JaxenXmlDataSource(org.w3c.dom.Document document)
throws JRException
document - the documentJRException - 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 expressionJRException - if the data source cannot be createdpublic JaxenXmlDataSource(java.io.InputStream in)
throws JRException
in - the input streamJRExceptionJRXmlDataSource.JRXmlDataSource(Document)public JaxenXmlDataSource(java.io.InputStream in,
java.lang.String selectExpression)
throws JRException
public JaxenXmlDataSource(java.lang.String uri)
throws JRException
If the system identifier is a URL, it must be full resolved.
uri - the system identifierJRExceptionJRXmlDataSource.JRXmlDataSource(Document)public JaxenXmlDataSource(java.lang.String uri,
java.lang.String selectExpression)
throws JRException
public JaxenXmlDataSource(java.io.File file)
throws JRException
file - the fileJRExceptionJRXmlDataSource.JRXmlDataSource(Document)public JaxenXmlDataSource(java.io.File file,
java.lang.String selectExpression)
throws JRException
public void moveFirst()
throws JRException
JRRewindableDataSourceJRExceptionpublic boolean next()
throws JRException
JRDataSourceJRException - if any error occurs while trying to move to the next elementpublic org.w3c.dom.Document subDocument()
throws JRException
AbstractXmlDataSourcesubDocument in class AbstractXmlDataSourceJRExceptionpublic void setXmlNamespaceMap(java.util.Map<java.lang.String,java.lang.String> xmlNamespaceMap)
throws JRException
JRExceptionpublic void setDetectXmlNamespaces(boolean detectXmlNamespaces)
public void setDocumentBuilderFactory(javax.xml.parsers.DocumentBuilderFactory documentBuilderFactory)
public org.w3c.dom.Node getCurrentNode()
getCurrentNode in class AbstractXmlDataSourcepublic java.lang.Object getSelectObject(org.w3c.dom.Node currentNode,
java.lang.String expression)
throws JRException
getSelectObject in class AbstractXmlDataSourceJRExceptionpublic AbstractXmlDataSource subDataSource(java.lang.String selectExpr) throws JRException
AbstractXmlDataSourcesubDataSource in class AbstractXmlDataSourceselectExpr - the XPath select expressionJRException - if the sub data source couldn't be createdJRXmlDataSource.JRXmlDataSource(Document, String)public AbstractXmlDataSource dataSource(java.lang.String selectExpr) throws JRException
AbstractXmlDataSourcedataSource in class AbstractXmlDataSourceselectExpr - the XPath select expressionJRException - if the sub data source couldn't be createdJRXmlDataSource.JRXmlDataSource(Document, String)© 2001-2010 Jaspersoft Corporation www.jaspersoft.com