public class RMDataSource
extends java.lang.Object
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 |
---|---|
RMDataSource |
fromXML(XMLArchiver anArchiver,
XMLElement 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.
|
java.lang.Object |
getSource()
Returns the source for this data source.
|
WebURL |
getSourceURL()
Returns the source for this data source.
|
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).
|
XMLElement |
toXML(XMLArchiver anArchiver)
XML archival.
|
public RMDataSource()
public RMDataSource(WebURL aURL)
public java.lang.Object getSource()
public WebURL getSourceURL()
public java.lang.String getName()
public Schema getSchema()
public java.util.Map getDataset()
public boolean getCustomSchema()
public void setCustomSchema(boolean customSchema)
public XMLElement toXML(XMLArchiver anArchiver)
public RMDataSource fromXML(XMLArchiver anArchiver, XMLElement anElement)
public java.lang.String toString()
toString
in class java.lang.Object