com.threerings.miso.tools.xml
Class SparseMisoSceneRuleSet

java.lang.Object
  extended by com.threerings.miso.tools.xml.SparseMisoSceneRuleSet
All Implemented Interfaces:
NestableRuleSet

public class SparseMisoSceneRuleSet
extends Object
implements NestableRuleSet

Used to parse a SparseMisoSceneModel from XML.


Constructor Summary
SparseMisoSceneRuleSet()
           
 
Method Summary
static void addObjectExtractor(org.apache.commons.digester.Digester dig, String type, String base, String methodName)
          Adds a set of rules to dig to create an Object info from the element at base/type/object and calls methodName on the object on dig's stack.
 void addRuleInstances(String prefix, org.apache.commons.digester.Digester dig)
          Instructs this ruleset to add its rules such that it parses its object from the specified path prefix.
 String getOuterElement()
          Returns the name of the nested object's outer element so that the parent parser can use it to compose the total path prefix.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SparseMisoSceneRuleSet

public SparseMisoSceneRuleSet()
Method Detail

getOuterElement

public String getOuterElement()
Description copied from interface: NestableRuleSet
Returns the name of the nested object's outer element so that the parent parser can use it to compose the total path prefix.

Specified by:
getOuterElement in interface NestableRuleSet

addRuleInstances

public void addRuleInstances(String prefix,
                             org.apache.commons.digester.Digester dig)
Description copied from interface: NestableRuleSet
Instructs this ruleset to add its rules such that it parses its object from the specified path prefix. The outer element returned by NestableRuleSet.getOuterElement() will have been included in the path prefix.

Specified by:
addRuleInstances in interface NestableRuleSet

addObjectExtractor

public static void addObjectExtractor(org.apache.commons.digester.Digester dig,
                                      String type,
                                      String base,
                                      String methodName)
Adds a set of rules to dig to create an Object info from the element at base/type/object and calls methodName on the object on dig's stack.



Copyright © 2011. All Rights Reserved.