|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.xoetrope.data.XDataSource net.xoetrope.optional.data.XOptionalDataSource
public class XOptionalDataSource
An extended datasource for handling databses, services and routing
Copyright: Copyright Xoetrope Ltd. (c) 2003
$Revision: 2.15 $ License: see license.txtField Summary | |
---|---|
protected XRouteManager |
routeMgr |
Fields inherited from class net.xoetrope.data.XDataSource |
---|
currentProject |
Constructor Summary | |
---|---|
XOptionalDataSource() null ctor |
Method Summary | |
---|---|
static java.lang.String |
checkLocalHsqldb(java.lang.ClassLoader cl, java.lang.String dbDriver, java.lang.String dbUrl) Check for a local database url. |
protected java.lang.String |
checkLocalHsqldb(java.lang.String dbDriver, java.lang.String dbUrl) Check for a local database url. |
java.lang.String |
getModelXML(XModel mdl) Output the model to a String and return it |
void |
loadDatabase(XmlElement source, XModel model) Recursively load the model data |
void |
loadRoutes(XmlElement source, XModel model) Load the routing information |
void |
loadService(XmlElement source, XModel model) Recursively load the model data |
void |
read(java.io.Reader r) Read a model from the Reader |
void |
registerDatabaseNode(XmlElement source) Register a database source element found within the datasets.xml file |
void |
registerDataSource(XmlElement source) Register the datasource files found within the datasets.xml file |
protected void |
showVisualisation() If the ShowVisualiser property is set to true then show the visualiser for debugging |
Methods inherited from class net.xoetrope.data.XDataSource |
---|
loadTable, outputModel, outputModel, outputModel, read, readDataSource, write, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected XRouteManager routeMgr
Constructor Detail |
---|
public XOptionalDataSource()
Method Detail |
---|
protected void showVisualisation()
public void read(java.io.Reader r)
read
in class XDataSource
r
- the Readerpublic void registerDataSource(XmlElement source)
source
- The path to the discovered filepublic void registerDatabaseNode(XmlElement source)
source
- The path to the database filepublic void loadDatabase(XmlElement source, XModel model)
source
- the source elementmodel
- the model for the source elementprotected java.lang.String checkLocalHsqldb(java.lang.String dbDriver, java.lang.String dbUrl)
dbDriver
- the database drivr classdbUrl
- the database urlpublic static java.lang.String checkLocalHsqldb(java.lang.ClassLoader cl, java.lang.String dbDriver, java.lang.String dbUrl)
cl
- teh classloader used to try and find the database filesdbDriver
- the database drivr classdbUrl
- the database urlpublic void loadService(XmlElement source, XModel model)
source
- the source elementmodel
- the model for the source elementpublic void loadRoutes(XmlElement source, XModel model)
source
- the source elementmodel
- the model for the source elementpublic java.lang.String getModelXML(XModel mdl)
mdl
- the model to bt output
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |