stella.xml
Class DOMTarget.Deserialize

java.lang.Object
  extended by stella.xml.DOMTarget.Deserialize
Enclosing class:
DOMTarget

public static class DOMTarget.Deserialize
extends Object

A class to test serialization. The command line argument is a serialized parsed target, which is read in and converted into an XML-file, which is then dumped tot system.out.


Field Summary
private static File PROPFILE
          The properties file of the scheduler.
 
Constructor Summary
DOMTarget.Deserialize()
           
 
Method Summary
static void main(String[] arg)
          Reads in the first command line argument, uses this xml-file to construct a Document via TargetFragment#createTargetDocument, parses this into a ParsedTarget with DOMTarget.parseTarget(java.lang.String, org.w3c.dom.Document, java.util.Map).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPFILE

private static final File PROPFILE
The properties file of the scheduler. For testing.

Constructor Detail

DOMTarget.Deserialize

public DOMTarget.Deserialize()
Method Detail

main

public static void main(String[] arg)
                 throws IOException,
                        ClassNotFoundException
Reads in the first command line argument, uses this xml-file to construct a Document via TargetFragment#createTargetDocument, parses this into a ParsedTarget with DOMTarget.parseTarget(java.lang.String, org.w3c.dom.Document, java.util.Map). This ParsedTarget is then retransformed into a Document with DOMTarget.toDocument(stella.xml.ParsedTarget, java.util.Map), and the resulting Document is finally stored as an xml-file using the {DOMToXML#transform} method. The file name is deduced from the second command line argument.
The properties of the target must be in a file named PROPFILE.

Throws:
IOException
ClassNotFoundException