com.simonstl.namespace
Class NamespaceList

java.lang.Object
  |
  +--com.simonstl.namespace.NamespaceList

public class NamespaceList
extends java.lang.Object

This class stores a set of rules, making it easy to define rule sets separately from the vocabulary defined for the examples.

Note that this class has no idea whether its rules are inclusions or exclusions. It just stores strings and reports whether or not a given string is a member of the list.

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

Constructor Summary
NamespaceList()
           
 
Method Summary
 void addRule(java.lang.String nsURI)
          adds a string to the list
 boolean isRule(java.lang.String match)
          checks whether a string is in the list
 void print()
          prints the list to standard output
 java.lang.String toString()
          simple listing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NamespaceList

public NamespaceList()
Method Detail

isRule

public boolean isRule(java.lang.String match)
checks whether a string is in the list

addRule

public void addRule(java.lang.String nsURI)
adds a string to the list

print

public void print()
prints the list to standard output

toString

public java.lang.String toString()
simple listing
Overrides:
toString in class java.lang.Object