public class XMLNodeFactory
Factory for node instantiation based on an XML-like file.
The factory uses its own XML parser that supports a sub-set of XML. The current implementation will parse a file compatible with jcsp-config.dtd. The parser does not current test conformance to this DTD. It does not currently support XML comments.
An example of using this class can be seen in
CNS
.
Constructor and description |
---|
XMLNodeFactory
(String filename) Constructs an XMLNodeFactory that uses the
specified file. |
XMLNodeFactory
(File xmlFile) Constructs an XMLNodeFactory that uses the
specified file. |
XMLNodeFactory
(URL xmlFile) Constructs an XMLNodeFactory that uses the
specified file. |
Constructs an XMLNodeFactory
that uses the
specified file.
filename
- the file name of the config file to use. Constructs an XMLNodeFactory
that uses the
specified file.
xmlFile
- a File
object pointing to the
XML file to use. Constructs an XMLNodeFactory
that uses the
specified file.
xmlFile
- a URL
object pointing to the
XML file to use. This is called by the Node
class.
node
- the Node object calling the method.attribs
- the attributes that need to be set by the method.JCSP for Java 1.8 generated 14-10-2016 by Jon Kerridge, Edinburgh Napier University - j dot kerridge at napier dot ac dot uk