Package com.ribs.datasource
Class RMDataSourceXML
java.lang.Object
com.ribs.datasource.RMDataSource
com.ribs.datasource.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 SummaryConstructorsConstructorDescriptionCreates a plain datasource.RMDataSourceXML(Object aSource, String aName) Creates a datasource from a given source with a given name (can be null).
- 
Method SummaryModifier and TypeMethodDescriptionfromXML(RXArchiver anArchiver, RXElement anElement) XML unarchival.booleanReturns a schema that may differ from the one stored in an XML file.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.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.Returns the source for the datasource.initWithArchiver(RMArchiver anArchiver) Legacy unarchival.voidsetCustomSchema(boolean customSchema) Sets a schema that may differ from the one stored in an XML file.voidSets the source for the datasource.static voidsetSourceContext(Object aSource) Sets possible context for aSource.toString()Returns a string representation of the datasource (just its name).toXML(RXArchiver anArchiver) XML archival.Methods inherited from class com.ribs.datasource.RMDataSourcegetName, setName
- 
Constructor Details- 
RMDataSourceXMLpublic RMDataSourceXML()Creates a plain datasource.
- 
RMDataSourceXMLCreates a datasource from a given source with a given name (can be null).
 
- 
- 
Method Details- 
getSourceReturns the source for the datasource.
- 
setSourceSets the source for the datasource.
- 
getSchemaReturns the schema of represented datasource as a heirarchy of RMEntity and RMProperty objects.- Overrides:
- getSchemain class- RMDataSource
 
- 
getCustomSchemapublic boolean getCustomSchema()Returns a schema that may differ from the one stored in an XML file.
- 
setCustomSchemapublic void setCustomSchema(boolean customSchema) Sets a schema that may differ from the one stored in an XML file.
- 
getEntityReturns the entity at the given key path.- Overrides:
- getEntityin class- RMDataSource
 
- 
getRelationReturns the relation at the given key path.- Overrides:
- getRelationin class- RMDataSource
 
- 
getDatasetReturns a sample dataset of objects associated with the datasource.- Overrides:
- getDatasetin class- RMDataSource
 
- 
getErrorReturns the last error encountered when loading a datasource.- Overrides:
- getErrorin class- RMDataSource
 
- 
setSourceContextSets possible context for aSource.
- 
toStringReturns a string representation of the datasource (just its name).- Overrides:
- toStringin class- RMDataSource
 
- 
toXMLXML archival.- Overrides:
- toXMLin class- RMDataSource
 
- 
fromXMLXML unarchival.- Overrides:
- fromXMLin class- RMDataSource
 
- 
initWithArchiverLegacy unarchival.
 
-