Package com.inductiveautomation.rm.base
Class RMDataSource
java.lang.Object
com.inductiveautomation.rm.base.RMDataSource
- All Implemented Interfaces:
- Archivable
- Direct Known Subclasses:
- SampleDataSchema
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 Schema, Entity and Property objects) and it provides sample data
 (mostly in the form of Java Collections and core types: List, Map, String, Number, Date).
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a plain datasource.RMDataSource(WebURL aURL) Creates a datasource from a given source with a given name (can be null).
- 
Method SummaryModifier and TypeMethodDescriptionprotected MapReturns a sample dataset of objects associated with the datasource.protected SchemaCreates the schema.fromXML(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.getName()Returns the name for this data source.Returns the schema of represented datasource as a hierarchy of Entity and Property objects.voidsetCustomSchema(boolean customSchema) Sets a schema that may differ from the one stored in an XML file.toString()Returns a string representation of the datasource (just its name).toXML(RXArchiver anArchiver) XML archival.
- 
Constructor Details- 
RMDataSourcepublic RMDataSource()Creates a plain datasource.
- 
RMDataSourceCreates a datasource from a given source with a given name (can be null).
 
- 
- 
Method Details- 
getNameReturns the name for this data source.
- 
getSchemaReturns the schema of represented datasource as a hierarchy of Entity and Property objects.
- 
createSchemaCreates the schema.
- 
getDatasetReturns a sample dataset of objects associated with the datasource.
- 
createDatasetReturns a sample dataset of objects associated with the datasource.
- 
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.
- 
toXMLXML archival.- Specified by:
- toXMLin interface- Archivable
 
- 
fromXMLXML unarchival.- Specified by:
- fromXMLin interface- Archivable
 
- 
toStringReturns a string representation of the datasource (just its name).
 
-