Package com.ribs.datasource
Class RMDataSource
java.lang.Object
com.ribs.datasource.RMDataSource
- Direct Known Subclasses:
- DataSetDataSource,- RMDataSourceGoogle,- RMDataSourceJDBC,- RMDataSourceXML
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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfromXML(RXArchiver anArchiver, RXElement anElement) XML unarchival.Returns a sample dataset of objects associated with the datasource.Returns the entity at the given key path.getError()Returns the last error encountered when loading a datasource.getName()Returns the name for the datasource.getRelation(String aKeyPath) Returns the relation at the given key path.Returns the schema of represented datasource as a heirarchy of RMEntity and RMProperty objects.voidSets the name for the datasource.toString()Returns a string representation of the datasource (just its name).toXML(RXArchiver anArchiver) XML archival.
- 
Constructor Details- 
RMDataSourcepublic RMDataSource()Creates a plain datasource.
 
- 
- 
Method Details- 
getNameReturns the name for the datasource.
- 
setNameSets the name for the datasource.
- 
getSchemaReturns the schema of represented datasource as a heirarchy of RMEntity and RMProperty objects.
- 
getDatasetReturns a sample dataset of objects associated with the datasource.
- 
getErrorReturns the last error encountered when loading a datasource.
- 
getEntityReturns the entity at the given key path.
- 
getRelationReturns the relation at the given key path.
- 
toStringReturns a string representation of the datasource (just its name).
- 
toXMLXML archival.
- 
fromXMLXML unarchival.
 
-