com.simonstl.fragment
Class FilterTester

java.lang.Object
  |
  +--com.simonstl.fragment.FilterTester

public class FilterTester
extends java.lang.Object

This class just 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.06 added command-line options for the System properties used to specify the match and split processors.

Version 0.05 added defaults for the System properties used to specify the match and split processors.

Version 0.04 added command line options for printing out the rules and for specifying parsers.

Version 0.03 moved all (non-regex) Xerces dependencies into this class, preparing for their removal.

Version 0.02 switched to the DataWriter implementation of XMLWriter, which makes it easier to see results by adding whitespace.

Version:
0.06 13 July 2001
Author:
Simon St.Laurent

Constructor Summary
FilterTester()
           
 
Method Summary
static void main(java.lang.String[] args)
          FilterTester's main method requires two arguments - a rules file and then 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

FilterTester

public FilterTester()
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 then a target XML file. Options may appear before those arguments:
-m [parser class name] - use the match processor specified
-p [parser class name] - specifies a SAX2 parser for use with this tool
-r - parse and display the rules only
-s [parser class name] - use the split processor specified
-ss [parser class name] - use the series processor specified (not implemented)