com.threerings.miso.tools.xml
Class SparseMisoSceneParser

java.lang.Object
  extended by com.threerings.miso.tools.xml.SparseMisoSceneParser

public class SparseMisoSceneParser
extends Object

A simple class for parsing simple miso scene models.


Field Summary
protected  org.apache.commons.digester.Digester _digester
           
protected  SparseMisoSceneModel _model
           
protected  String _prefix
           
 
Constructor Summary
SparseMisoSceneParser(String prefix)
          Constructs a scene parser that parses scenes with the specified XML path prefix.
 
Method Summary
 SparseMisoSceneModel parseScene(String path)
          Parses the XML file at the specified path into a scene model instance.
 void setScene(SparseMisoSceneModel model)
          Called by the parser once the scene is parsed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_prefix

protected String _prefix

_digester

protected org.apache.commons.digester.Digester _digester

_model

protected SparseMisoSceneModel _model
Constructor Detail

SparseMisoSceneParser

public SparseMisoSceneParser(String prefix)
Constructs a scene parser that parses scenes with the specified XML path prefix.

Method Detail

parseScene

public SparseMisoSceneModel parseScene(String path)
                                throws IOException,
                                       SAXException
Parses the XML file at the specified path into a scene model instance.

Throws:
IOException
SAXException

setScene

public void setScene(SparseMisoSceneModel model)
Called by the parser once the scene is parsed.