civquest.parser.ruleset
Class Registry
java.lang.Object
civquest.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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Registry
public Registry(java.net.URL baseURL)
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