com.threerings.tools.xml
Class CompiledConfigParser

java.lang.Object
  extended by com.threerings.tools.xml.CompiledConfigParser
Direct Known Subclasses:
ColorPositoryParser, FringeConfigurationParser

public abstract class CompiledConfigParser
extends Object

An abstract base implementation of a parser that is used to compile configuration definitions into config objects for use by the client and server.

See Also:
CompiledConfig, CompiledConfigTask

Constructor Summary
CompiledConfigParser()
           
 
Method Summary
protected abstract  void addRules(org.apache.commons.digester.Digester digester)
          Adds the necessary digester rules for parsing the config object.
protected abstract  Serializable createConfigObject()
          Creates the config object instance that will be populated during the parsing process.
 Serializable parseConfig(File source)
          Parses the supplied configuration file into a serializable configuration object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompiledConfigParser

public CompiledConfigParser()
Method Detail

parseConfig

public Serializable parseConfig(File source)
                         throws IOException,
                                SAXException
Parses the supplied configuration file into a serializable configuration object.

Throws:
IOException
SAXException

createConfigObject

protected abstract Serializable createConfigObject()
Creates the config object instance that will be populated during the parsing process.


addRules

protected abstract void addRules(org.apache.commons.digester.Digester digester)
Adds the necessary digester rules for parsing the config object.