gdl.config
Class ConfigHandler

java.lang.Object
  extended by gdl.config.ConfigHandler

public class ConfigHandler
extends java.lang.Object

This class receives several user input options: the tag that is used for nodes, the unique ID attribute and the tag used for crossRefs It invokes the configuration Parser that parses, if available, the config part of the xml source file (that has a predefined grammar) and stores the config values to so called config sets, which can either be of type RangeConfigSet (representing a direct value range which can be use for node sizes) or of type SwitchConfigSet that can be used for colors as well as for size categories.

Author:
Martin Suntinger

Constructor Summary
ConfigHandler(ParsingManager pm)
          Initialize the config handler with the Parsing manager.
 
Method Summary
 java.util.LinkedList[] parseConfigurationPart()
          This method does the XML parsing of the source file's configuration part.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigHandler

public ConfigHandler(ParsingManager pm)
Initialize the config handler with the Parsing manager. The Parsing manager is needed in order to access several parsing settings

Parameters:
pm - the Parsing Manager that controls the current parsing process
Method Detail

parseConfigurationPart

public java.util.LinkedList[] parseConfigurationPart()
This method does the XML parsing of the source file's configuration part. In initiales configuration sets for the size and the color attributes and stores them to lists. both lists are afterwards returned in an array

Returns:
an array containing 2 linked lists: the size and the color config sets