public class RMDataSource extends java.lang.Object implements Archivable
| Constructor and Description |
|---|
RMDataSource()
Creates a plain datasource.
|
RMDataSource(WebURL aURL)
Creates a datasource from a given source with a given name (can be null).
|
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Map |
createDataset()
Returns a sample dataset of objects associated with the datasource.
|
protected Schema |
createSchema()
Creates the schema.
|
RMDataSource |
fromXML(RXArchiver anArchiver,
RXElement anElement)
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.lang.String |
getName()
Returns the name for this data source.
|
Schema |
getSchema()
Returns the schema of represented datasource as a hierarchy of Entity and Property objects.
|
void |
setCustomSchema(boolean customSchema)
Sets a schema that may differ from the one stored in an XML file.
|
java.lang.String |
toString()
Returns a string representation of the datasource (just its name).
|
RXElement |
toXML(RXArchiver anArchiver)
XML archival.
|
public RMDataSource()
public RMDataSource(WebURL aURL)
public java.lang.String getName()
public Schema getSchema()
protected Schema createSchema()
public java.util.Map getDataset()
protected java.util.Map createDataset()
public boolean getCustomSchema()
public void setCustomSchema(boolean customSchema)
public RXElement toXML(RXArchiver anArchiver)
toXML in interface Archivablepublic RMDataSource fromXML(RXArchiver anArchiver, RXElement anElement)
fromXML in interface Archivablepublic java.lang.String toString()
toString in class java.lang.Object