cz.zcu.fav.kiv.editor.config
Class ParamController

java.lang.Object
  extended by cz.zcu.fav.kiv.editor.config.ParamController

public class ParamController
extends java.lang.Object

The ParamController class contains method for reading XML definitions of parameters and properties.

Version:
1.0, 05/2007
Author:
Marta Vaclavikova

Field Summary
static java.util.regex.Pattern patternParam
          The model pattern used for parsing $param
static java.lang.String REGEX_PARAM
          The model pattern used for parsing $param
 
Constructor Summary
ParamController(ConfigData configData, CommonTypes types)
          Initializes a newly created ParamController.
 
Method Summary
 java.util.Map<java.lang.String,Parameter> getParsedParameterList()
           
 void readParameters()
          Reads XML files for all parameters.
 void readProperties()
          Reads XML files for all properties.
 void removeInvalidParam(java.util.Map<java.lang.String,Figure> figureList)
          Removes all parameters and properties that couldn't be parsed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REGEX_PARAM

public static final java.lang.String REGEX_PARAM
The model pattern used for parsing $param

See Also:
Constant Field Values

patternParam

public static java.util.regex.Pattern patternParam
The model pattern used for parsing $param

Constructor Detail

ParamController

public ParamController(ConfigData configData,
                       CommonTypes types)
Initializes a newly created ParamController. Simultaneously initializes new ParameterParser and PropertyParser.

Method Detail

readParameters

public void readParameters()
Reads XML files for all parameters. Processes the complex paramater values that depends on other parameter values.


readProperties

public void readProperties()
Reads XML files for all properties. Processes the complex attribute values that depends on other parameter values.


removeInvalidParam

public void removeInvalidParam(java.util.Map<java.lang.String,Figure> figureList)
Removes all parameters and properties that couldn't be parsed.

Parameters:
figureList - the list with graphics figures.

getParsedParameterList

public java.util.Map<java.lang.String,Parameter> getParsedParameterList()