edu.cmu.emulator.world
Class WorldDefParser
java.lang.Object
edu.cmu.emulator.world.WorldDefParser
public class WorldDefParser
- extends Object
The parser for parsing the WorldDef tag in the config file.
Method Summary |
WorldDef |
parse(Element worldDefElement)
This method takes as input the DOM element representing the WorldDef
tag and parses through its subtree. |
void |
print(WorldDef worldDef)
This method prints the data extracted from the NodeDef tag. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
worldDef
public WorldDef worldDef
WorldDefParser
public WorldDefParser()
parse
public WorldDef parse(Element worldDefElement)
- This method takes as input the DOM element representing the WorldDef
tag and parses through its subtree.
- Parameters:
worldDefElement
- The DOM element which represents the WorldDef
tag subtree.
- Returns:
- A shiny new WorldDef object.
print
public void print(WorldDef worldDef)
- This method prints the data extracted from the NodeDef tag.
Copyright © 2013. All Rights Reserved.