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

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

public class ConfigController
extends java.lang.Object

The ConfigController class contains methods for reading configuration files.

Version:
1.0, 05/2007
Author:
Marta Vaclavikova

Constructor Summary
ConfigController()
          Initializes a newly created ConfigController.
 
Method Summary
 CommonTypes getCommonTypes()
           
 ConfigData getData()
           
 java.util.Map<java.lang.String,Figure> getFigureList()
           
 void readAttributes()
          Reads the configuration file with attributes - attributes.xml.
 void readConfig()
          Reads the configuration file with layout of parameters and attribute-sets - config.xml.
 void readFigures(java.util.Map<java.lang.String,Parameter> parsedParameterList)
          Reads the configuration file with graphics figures - graphics.xml.
 void readTypes()
          Reads the configuration file with types - types.xml.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigController

public ConfigController()
Initializes a newly created ConfigController. Simultaneously initializes new ConfigParser and ConfigData.

Method Detail

readFigures

public void readFigures(java.util.Map<java.lang.String,Parameter> parsedParameterList)
                 throws FileNotFoundException,
                        ConfigException
Reads the configuration file with graphics figures - graphics.xml.

Throws:
FileNotFoundException - if the configuration file or its XML schema doesn't exist.
ConfigException - if the configuration file or its XML schema isn't well-formed.

readAttributes

public void readAttributes()
                    throws ConfigException,
                           FileNotFoundException
Reads the configuration file with attributes - attributes.xml.

Throws:
ConfigException - if the configuration file or its XML schema isn't well-formed.
FileNotFoundException - if the configuration file or its XML schema doesn't exist.

readConfig

public void readConfig()
                throws ConfigException,
                       FileNotFoundException
Reads the configuration file with layout of parameters and attribute-sets - config.xml.

Throws:
ConfigException - if the configuration file or its XML schema isn't well-formed.
FileNotFoundException - if the configuration file or its XML schema doesn't exist.

readTypes

public void readTypes()
               throws ConfigException,
                      FileNotFoundException
Reads the configuration file with types - types.xml.

Throws:
ConfigException - if the configuration file or its XML schema isn't well-formed.
FileNotFoundException - if the configuration file or its XML schema doesn't exist.

getData

public ConfigData getData()

getCommonTypes

public CommonTypes getCommonTypes()

getFigureList

public java.util.Map<java.lang.String,Figure> getFigureList()