|
CSP for Java (JCSP) 1.1-rc4 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jcsp.net.XMLNodeFactory
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 Summary | |
|---|---|
XMLNodeFactory(File xmlFile)
Constructs an XMLNodeFactory that uses the
specified file. |
|
XMLNodeFactory(String filename)
Constructs an XMLNodeFactory that uses the
specified file. |
|
XMLNodeFactory(URL xmlFile)
Constructs an XMLNodeFactory that uses the
specified file. |
|
| Method Summary | |
|---|---|
NodeKey |
initNode(Node node,
Node.Attributes attribs)
This is called by the Node class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLNodeFactory(String filename)
throws IOException
XMLNodeFactory that uses the
specified file.
filename - the file name of the config file to use.
IOException
public XMLNodeFactory(File xmlFile)
throws IOException
XMLNodeFactory that uses the
specified file.
xmlFile - a File object pointing to the
XML file to use.
IOException
public XMLNodeFactory(URL xmlFile)
throws IOException
XMLNodeFactory that uses the
specified file.
xmlFile - a URL object pointing to the
XML file to use.
IOException| Method Detail |
|---|
public NodeKey initNode(Node node,
Node.Attributes attribs)
throws NodeInitFailedException
Node class.
initNode in interface NodeFactorynode - the Node object calling the method.attribs - the attributes that need to be set by the method.
NodeInitFailedException - if initialization failed.
|
CSP for Java (JCSP) 1.1-rc4 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||