com.simonstl.namespace.attributes
Class AttribFilterTester

java.lang.Object
  |
  +--com.simonstl.namespace.attributes.AttribFilterTester

public class AttribFilterTester
extends java.lang.Object

This class tests AttribNamespaceFilter. 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 FilterTester class from the com.simonstl.fragment package.

Version:
0.01 28 July 2001
Author:
Simon St.Laurent

Constructor Summary
AttribFilterTester()
           
 
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

AttribFilterTester

public AttribFilterTester()
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