|
ReportMill 12 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.reportmill.base.RMObject
com.reportmill.datasource.RMDataSource
com.reportmill.datasource.RMXMLDataSource
public class RMXMLDataSource
This class is used as a proxy for objects passed to document's generateReport() method. It provides schema information of the object graph (in the form of RMEntity and RMProperty objects) and it provides sample data (probably in the form of Java Collections and core types: List, Map, String, Number, Date).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.reportmill.datasource.RMDataSource |
|---|
RMDataSource.EntityResolver |
| Constructor Summary | |
|---|---|
RMXMLDataSource()
Creates a plain datasource. |
|
RMXMLDataSource(java.lang.Object aSource,
java.lang.String aName)
Creates a datasource from a given source with a given name (can be null). |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object anObj)
Standard equals implementation. |
RMXMLDataSource |
fromXML(com.reportmill.archiver.RXArchiver anArchiver,
com.reportmill.archiver.RXElement anElement,
java.lang.Object anOwner)
XML unarchival. |
boolean |
getCustomSchema()
Returns a schema that may differ from the one stored in an XML file. |
java.util.Map |
getDataset()
Returns a sample dataset of objects associated with the datasource. |
RMSchema |
getSchema()
Returns the schema of represented datasource as a hierarchy of RMEntity and RMProperty objects. |
java.lang.Object |
getSource()
Returns the source for the datasource. |
void |
refresh()
Invalidates any cached data. |
void |
setCustomSchema(boolean customSchema)
Sets a schema that may differ from the one stored in an XML file. |
void |
setSource(java.lang.Object aSource)
Sets the source for the datasource. |
java.lang.String |
toString()
Returns a string representation of the datasource (just its name). |
com.reportmill.archiver.RXElement |
toXML(com.reportmill.archiver.RXArchiver anArchiver,
java.lang.Object anOwner)
XML archival. |
| Methods inherited from class com.reportmill.datasource.RMDataSource |
|---|
create, createEntity, createObject, delete, deleteEntity, deleteFile, deleteRow, getAllRows, getDataset, getEntity, getEntityClass, getEntityResolver, getFile, getFile, getFile, getFilesImpl, getName, getRootDirectory, getRow, getRow, getRows, getSchemaVisible, getTypeString, getUniqueRow, insertRow, propertyChange, readFile, saveRows, saveRowsImmediately, setEntityResolver, setName, updateRow, writeFile |
| Methods inherited from class com.reportmill.base.RMObject |
|---|
addListener, addPropertyChangeListener, animUpdate, clone, firePropertyChange, firePropertyChange, getListener, getListenerCount, getListeners, isFirePropertyChangeEnabled, isUndoing, removeListener, removePropertyChangeListener, setFirePropertyChangeEnabled, setUndoing |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RMXMLDataSource()
public RMXMLDataSource(java.lang.Object aSource,
java.lang.String aName)
| Method Detail |
|---|
public java.lang.Object getSource()
public void setSource(java.lang.Object aSource)
public RMSchema getSchema()
getSchema in class RMDataSourcepublic boolean getCustomSchema()
public void setCustomSchema(boolean customSchema)
public java.util.Map getDataset()
getDataset in class RMDataSourcepublic void refresh()
refresh in class RMDataSourcepublic boolean equals(java.lang.Object anObj)
equals in class RMDataSource
public com.reportmill.archiver.RXElement toXML(com.reportmill.archiver.RXArchiver anArchiver,
java.lang.Object anOwner)
toXML in class RMDataSource
public RMXMLDataSource fromXML(com.reportmill.archiver.RXArchiver anArchiver,
com.reportmill.archiver.RXElement anElement,
java.lang.Object anOwner)
fromXML in class RMDataSourcepublic java.lang.String toString()
toString in class RMDataSource
|
ReportMill 12 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||