|
ReportMill 11 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).
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. |
java.lang.Object |
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. |
java.util.List |
getDataset(RMFetch aFetch)
Gets the dataset for an entity. |
java.lang.String |
getError()
Returns the last error encountered when loading a 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 |
---|
close, createObject, getDataset, getEntity, getName, hasChanges, isReadOnly, setName |
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 RMDataSource
public boolean getCustomSchema()
public void setCustomSchema(boolean customSchema)
public java.util.Map getDataset()
getDataset
in class RMDataSource
public java.util.List getDataset(RMFetch aFetch)
getDataset
in class RMDataSource
public void refresh()
refresh
in class RMDataSource
public java.lang.String getError()
getError
in class RMDataSource
public 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 java.lang.Object fromXML(com.reportmill.archiver.RXArchiver anArchiver, com.reportmill.archiver.RXElement anElement, java.lang.Object anOwner)
fromXML
in class RMDataSource
public java.lang.String toString()
toString
in class RMDataSource
|
ReportMill 11 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |