com.threerings.cast.tools.xml
Class ClassRuleSet
java.lang.Object
org.apache.commons.digester.RuleSetBase
com.threerings.cast.tools.xml.ClassRuleSet
- All Implemented Interfaces:
- org.apache.commons.digester.RuleSet
public class ClassRuleSet
- extends org.apache.commons.digester.RuleSetBase
The class rule set is used to parse the attributes of a component class
instance.
|
Field Summary |
protected String |
_prefix
The prefix at which me match our component classes. |
static String |
CLASS_PATH
The component of the digester path that is appended by the class
rule set to match a component class. |
| Fields inherited from class org.apache.commons.digester.RuleSetBase |
namespaceURI |
|
Method Summary |
void |
addRuleInstances(org.apache.commons.digester.Digester digester)
Adds the necessary rules to the digester to parse our classes. |
void |
setPrefix(String prefix)
Instructs the class rule set to match component classes with the
supplied prefix. |
| Methods inherited from class org.apache.commons.digester.RuleSetBase |
getNamespaceURI |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLASS_PATH
public static final String CLASS_PATH
- The component of the digester path that is appended by the class
rule set to match a component class. This is appended to whatever
prefix is provided to the class rule set to obtain the complete XML
path to a matched class.
- See Also:
- Constant Field Values
_prefix
protected String _prefix
- The prefix at which me match our component classes.
ClassRuleSet
public ClassRuleSet()
setPrefix
public void setPrefix(String prefix)
- Instructs the class rule set to match component classes with the
supplied prefix. For example, passing a prefix of
classes will match classes in the following XML file:
<classes>
<class .../>
</classes>
This must be called before adding the ruleset to a digester.
addRuleInstances
public void addRuleInstances(org.apache.commons.digester.Digester digester)
- Adds the necessary rules to the digester to parse our classes.
- Specified by:
addRuleInstances in interface org.apache.commons.digester.RuleSet- Specified by:
addRuleInstances in class org.apache.commons.digester.RuleSetBase