com.simonstl.namespace
Class NamespaceRules

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

public class NamespaceRules
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.

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

Constructor Summary
NamespaceRules()
           
 
Method Summary
 void addRule(java.lang.String nsURI, boolean inEx)
          adds a string to the list.
 boolean isRule(java.lang.String match)
           
 void print()
          prints the list of rules
 java.lang.String toString()
          lists both sets of rules
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NamespaceRules

public NamespaceRules()
Method Detail

isRule

public boolean isRule(java.lang.String match)

addRule

public void addRule(java.lang.String nsURI,
                    boolean inEx)
adds a string to the list.
Parameters:
nsURI - - the URI to match
inEx - - true if an included URI, false if an excluded URI

print

public void print()
prints the list of rules

toString

public java.lang.String toString()
lists both sets of rules
Overrides:
toString in class java.lang.Object