|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jasperreports.engine.data.JRAbstractTextDataSource
net.sf.jasperreports.engine.data.AbstractXmlDataSource
net.sf.jasperreports.engine.data.XalanXmlDataSource
public class XalanXmlDataSource
| Constructor Summary | |
|---|---|
XalanXmlDataSource(Document document)
Creates the data source by parsing the xml document from the given file. |
|
XalanXmlDataSource(Document document,
String selectExpression)
Creates the data source by parsing the xml document from the given file. |
|
XalanXmlDataSource(File file)
Creates the data source by parsing the xml document from the given file. |
|
XalanXmlDataSource(File file,
String selectExpression)
Creates the data source by parsing the xml document from the given file. |
|
XalanXmlDataSource(InputStream in)
Creates the data source by parsing the xml document from the given input stream. |
|
XalanXmlDataSource(InputStream in,
String selectExpression)
Creates the data source by parsing the xml document from the given input stream. |
|
XalanXmlDataSource(String uri)
Creates the data source by parsing the xml document from the given system identifier (URI). |
|
XalanXmlDataSource(String uri,
String selectExpression)
Creates the data source by parsing the xml document from the given system identifier (URI). |
|
| Method Summary | |
|---|---|
AbstractXmlDataSource |
dataSource(String selectExpr)
Creates a sub data source using as root document the document used by "this" data source. |
Node |
getCurrentNode()
|
Object |
getSelectObject(Node currentNode,
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(DocumentBuilderFactory documentBuilderFactory)
|
void |
setXmlNamespaceMap(Map<String,String> xmlNamespaceMap)
|
AbstractXmlDataSource |
subDataSource(String selectExpr)
Creates a sub data source using the current node (record) as the root of the document. |
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 XalanXmlDataSource(Document document)
throws JRException
document - the document
JRException - if the data source cannot be created
public XalanXmlDataSource(Document document,
String selectExpression)
throws JRException
document - the documentselectExpression - the XPath select expression
JRException - if the data source cannot be created
public XalanXmlDataSource(InputStream in)
throws JRException
in - the input stream
JRExceptionJRXmlDataSource.JRXmlDataSource(Document)
public XalanXmlDataSource(InputStream in,
String selectExpression)
throws JRException
JRExceptionJRXmlDataSource.JRXmlDataSource(InputStream),
JRXmlDataSource.JRXmlDataSource(Document, String)
public XalanXmlDataSource(String uri)
throws JRException
If the system identifier is a URL, it must be full resolved.
uri - the system identifier
JRExceptionJRXmlDataSource.JRXmlDataSource(Document)
public XalanXmlDataSource(String uri,
String selectExpression)
throws JRException
JRExceptionJRXmlDataSource.JRXmlDataSource(String),
JRXmlDataSource.JRXmlDataSource(Document, String)
public XalanXmlDataSource(File file)
throws JRException
file - the file
JRExceptionJRXmlDataSource.JRXmlDataSource(Document)
public XalanXmlDataSource(File file,
String selectExpression)
throws JRException
JRExceptionJRXmlDataSource.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 element
public Document subDocument()
throws JRException
AbstractXmlDataSource
subDocument in class AbstractXmlDataSourceJRException
public void setXmlNamespaceMap(Map<String,String> xmlNamespaceMap)
throws JRException
JRExceptionpublic void setDetectXmlNamespaces(boolean detectXmlNamespaces)
public void setDocumentBuilderFactory(DocumentBuilderFactory documentBuilderFactory)
public Node getCurrentNode()
getCurrentNode in class AbstractXmlDataSource
public Object getSelectObject(Node currentNode,
String expression)
throws JRException
getSelectObject in class AbstractXmlDataSourceJRException
public AbstractXmlDataSource subDataSource(String selectExpr)
throws JRException
AbstractXmlDataSource
subDataSource in class AbstractXmlDataSourceselectExpr - the XPath select expression
JRException - if the sub data source couldn't be createdJRXmlDataSource.JRXmlDataSource(Document, String)
public AbstractXmlDataSource dataSource(String selectExpr)
throws JRException
AbstractXmlDataSource
dataSource in class AbstractXmlDataSourceselectExpr - 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 | |||||||||