de.steeringbehaviors.simulation.xml
Class DescriptionGenerator

java.lang.Object
  extended by de.steeringbehaviors.simulation.xml.DescriptionGenerator

public class DescriptionGenerator
extends java.lang.Object

Class DescriptionGenerator Generates a object description from a xml file


Field Summary
protected  org.w3c.dom.Node m_node
          Used to store the current position of the TreeWalker
protected  org.w3c.dom.traversal.TreeWalker m_treeWalker
          TreeWalker object used to build the description of a Geometrie object
 
Constructor Summary
DescriptionGenerator(org.w3c.dom.traversal.TreeWalker treeWalker)
          Constructor
 
Method Summary
 Geometrie buildDescription()
          Returns the Geometrie object described in the DOM
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_treeWalker

protected org.w3c.dom.traversal.TreeWalker m_treeWalker
TreeWalker object used to build the description of a Geometrie object


m_node

protected org.w3c.dom.Node m_node
Used to store the current position of the TreeWalker

Constructor Detail

DescriptionGenerator

public DescriptionGenerator(org.w3c.dom.traversal.TreeWalker treeWalker)
Constructor

Parameters:
treeWalker - TreeWalkerObject to navigate in the DOM
Method Detail

buildDescription

public Geometrie buildDescription()
Returns the Geometrie object described in the DOM

Returns:
Geometrie object