|
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.RMFileDataSource
com.reportmill.datasource.RMJSONDataSource
public class RMJSONDataSource
A data source for JSON read from parameterized URLs.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.reportmill.datasource.RMDataSource |
|---|
RMDataSource.EntityResolver |
| Constructor Summary | |
|---|---|
RMJSONDataSource()
Creates a new JSON datasource. |
|
RMJSONDataSource(java.lang.Object aSource)
Creates a new JSON datasource for source. |
|
| Method Summary | |
|---|---|
java.util.List |
convertJSON(com.reportmill.archiver.JSONArray anArray)
Converts a JSON array to List. |
java.util.Map |
convertJSON(com.reportmill.archiver.JSONObject anObj)
Converts a JSON object to Map. |
java.util.Map |
getDataset()
Returns all data source data as a dataset. |
java.util.List<RMRow> |
getEntityRows(RMEntity anEntity)
Returns the list of rows for a given entity. |
java.lang.Object |
getSource()
Returns the datasource source. |
java.lang.String |
getTypeString()
Returns the type string. |
RMSchema |
readSchema()
Reads the schema from json file. |
void |
setSource(java.lang.Object aSource)
Sets the datasource source. |
| Methods inherited from class com.reportmill.datasource.RMFileDataSource |
|---|
createEntityImpl, delete, deleteFileImpl, deleteRowImpl, fromXML, getEntityFile, getFilesImpl, getPath, getRowsImpl, getSchema, insertRowImpl, readFileImpl, saveRowsImmediately, saveSchema, setPath, toXML, updateRowImpl, writeFileImpl |
| Methods inherited from class com.reportmill.datasource.RMDataSource |
|---|
create, createEntity, createObject, deleteEntity, deleteFile, deleteRow, equals, getAllRows, getDataset, getEntity, getEntityClass, getEntityResolver, getFile, getFile, getFile, getName, getRootDirectory, getRow, getRow, getRows, getSchemaVisible, getUniqueRow, insertRow, propertyChange, readFile, refresh, saveRows, setEntityResolver, setName, toString, 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 RMJSONDataSource()
public RMJSONDataSource(java.lang.Object aSource)
| Method Detail |
|---|
public java.lang.String getTypeString()
getTypeString in class RMFileDataSourcepublic java.lang.Object getSource()
public void setSource(java.lang.Object aSource)
public java.util.Map getDataset()
getDataset in class RMFileDataSourcepublic RMSchema readSchema()
readSchema in class RMFileDataSourcepublic java.util.List<RMRow> getEntityRows(RMEntity anEntity)
RMFileDataSource
getEntityRows in class RMFileDataSourcepublic java.util.Map convertJSON(com.reportmill.archiver.JSONObject anObj)
public java.util.List convertJSON(com.reportmill.archiver.JSONArray anArray)
|
ReportMill 12 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||