com.threerings.miso.tile.tools.xml
Class BaseTileSetRuleSet
java.lang.Object
org.apache.commons.digester.RuleSetBase
com.threerings.media.tile.tools.xml.TileSetRuleSet
com.threerings.media.tile.tools.xml.SwissArmyTileSetRuleSet
com.threerings.miso.tile.tools.xml.BaseTileSetRuleSet
- All Implemented Interfaces:
- ValidatedSetNextRule.Validator, org.apache.commons.digester.RuleSet
public class BaseTileSetRuleSet
- extends SwissArmyTileSetRuleSet
Parses BaseTileSet instances from a tileset description. Base
tilesets extend swiss army tilesets with the addition of a passability
flag for each tile.
- See Also:
SwissArmyTileSetRuleSet
| 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 tilesets. |
protected Class<? extends TileSet> |
getTileSetClass()
A tileset rule set will create tilesets of a particular class,
which must be provided by the derived class via this method. |
boolean |
isValid(Object target)
The ruleset can be provided to a ValidatedSetNextRule to ensure that the tileset
was fully parsed before doing something with it. |
| 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 |
BaseTileSetRuleSet
public BaseTileSetRuleSet()
addRuleInstances
public void addRuleInstances(org.apache.commons.digester.Digester digester)
- Description copied from class:
TileSetRuleSet
- Adds the necessary rules to the digester to parse our tilesets.
Derived classes should override this method, being sure to call the
superclass method and then adding their own rule instances (which
should register themselves relative to the
_prefix
member).
- Specified by:
addRuleInstances in interface org.apache.commons.digester.RuleSet- Overrides:
addRuleInstances in class SwissArmyTileSetRuleSet
isValid
public boolean isValid(Object target)
- Description copied from class:
TileSetRuleSet
- The ruleset can be provided to a
ValidatedSetNextRule to ensure that the tileset
was fully parsed before doing something with it.
- Specified by:
isValid in interface ValidatedSetNextRule.Validator- Overrides:
isValid in class SwissArmyTileSetRuleSet
getTileSetClass
protected Class<? extends TileSet> getTileSetClass()
- Description copied from class:
TileSetRuleSet
- A tileset rule set will create tilesets of a particular class,
which must be provided by the derived class via this method.
- Overrides:
getTileSetClass in class SwissArmyTileSetRuleSet