civquest.parser.ruleset
Class Registry

java.lang.Object
  extended bycivquest.parser.ruleset.Registry

public class Registry
extends java.lang.Object

Acts as the main access point for all .ruleset file in one given directory (the baseDir). Ruleset files can be accessed via the getFile(String) method, which dynamically instantiates the Ruleset objects which contains data from one ruleset file.


Constructor Summary
Registry(java.net.URL baseURL)
           
 
Method Summary
 java.lang.String[] getAllRulesets()
           
 Ruleset getRuleset(java.lang.String name)
           
 Registry getSubRegistry(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Registry

public Registry(java.net.URL baseURL)
Method Detail

getRuleset

public Ruleset getRuleset(java.lang.String name)

getSubRegistry

public Registry getSubRegistry(java.lang.String name)
Returns:
a subregistry to this registry, which on the file system is a subdir containing ruleset files.

getAllRulesets

public java.lang.String[] getAllRulesets()
Returns:
an array of all the rulesets available in this registry