stella.xml
Class DOMTarget.Filter

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

public static class DOMTarget.Filter
extends Object

A class that reads in an xml-file, parses, and writes an xml-file, if it satisfies a certain filter. This class is mainly for testing, but can also be used to transform rudimentary input documents to fully indented xml files with default setting loaded.


Field Summary
private static File PROPFILE
          The properties file of the scheduler.
 
Constructor Summary
DOMTarget.Filter()
           
 
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.Filter

public DOMTarget.Filter()
Method Detail

main

public static void main(String[] arg)
                 throws Exception
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:
Exception