com.simonstl.namespace.elements
Class ElementReplFilterTester

java.lang.Object
  |
  +--com.simonstl.namespace.elements.ElementReplFilterTester

public class ElementReplFilterTester
extends java.lang.Object

This class tests ElementReplNamespaceFilter. It takes two arguments - a rules file and a target file. It loads the rules, feeds them to the filter, and sets up an XMLWriter so that testers can see the results on the command line.

This class requires David Megginson's XMLWriter class, available from: http://www.megginson.com/Software/index.html.

Version 0.01 is based on the ElementFilterTester class.

Version:
0.01 1 August 2001
Author:
Simon St.Laurent

Constructor Summary
ElementReplFilterTester()
           
 
Method Summary
static void main(java.lang.String[] args)
          FilterTester's main method requires two arguments - a rules file and a target XML file.
static void printHelp()
          printHelp() lists options if the user doesn't specify any files.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementReplFilterTester

public ElementReplFilterTester()
Method Detail

printHelp

public static void printHelp()
printHelp() lists options if the user doesn't specify any files.

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
FilterTester's main method requires two arguments - a rules file and a target XML file. A rules file may also be specified. Options may appear before those arguments:
-p [parser class name] - specifies a SAX2 parser for use with this tool
-r - parse and display the rules only