com.threerings.miso.tools.xml
Class SimpleMisoSceneParser

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

public class SimpleMisoSceneParser
extends Object

A simple class for parsing simple miso scene models.


Constructor Summary
SimpleMisoSceneParser(String prefix)
          Constructs a scene parser that parses scenes with the specified XML path prefix.
 
Method Summary
 SimpleMisoSceneModel parseScene(String path)
          Parses the XML file at the specified path into a scene model instance.
 void setScene(SimpleMisoSceneModel model)
          Called by the parser once the scene is parsed.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleMisoSceneParser

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

Method Detail

parseScene

public SimpleMisoSceneModel 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(SimpleMisoSceneModel model)
Called by the parser once the scene is parsed.



Copyright © 2011. All Rights Reserved.