| java.lang.Object net.xoetrope.data.XDataSource
All known Subclasses: net.xoetrope.optional.data.XOptionalDataSource,
XDataSource | public class XDataSource (Code) | | Loads a model from a reader
Copyright (c) Xoetrope Ltd., 1998-2003
License: see license.txt
$Revision: 1.22 $
|
XDataSource | public XDataSource()(Code) | | |
loadTable | public void loadTable(XmlElement source, XModel model)(Code) | | Recursively load the model data
Parameters: source - the source element Parameters: model - the model for the source element |
outputModel | public static void outputModel(Writer w, XModel model)(Code) | | Iterate the XModels and outputs the Elements and their attributes.
Parameters: w - the output writer Parameters: model - the model to write |
outputModel | public void outputModel(String filename, XModel model)(Code) | | Iterate the XModels and outputs the Elements and their attributes.
Parameters: filename - the file to write Parameters: model - the model to write |
read | public void read(Reader r)(Code) | | Read a model from the Reader
Parameters: r - the Reader |
read | public void read(XmlElement ele)(Code) | | Read an file pointed to by an element in the XML description of the data sources
Parameters: ele - the individual data source description |
readDataSource | protected void readDataSource(String fileName, XmlElement source)(Code) | | Read the data source file.
Parameters: fileName - the nam eof the file to open Parameters: source - the XML element describing the source |
write | public void write(Writer w)(Code) | | Outputs the datasource as XML
Parameters: w - The Writer of the file. |
write | public void write(Writer w, XModel model)(Code) | | Outputs the datasource as XML
Parameters: w - The Writer of the file. |
|
|