public class ConfigController
extends java.lang.Object
ConfigController
class contains methods for reading configuration files.Constructor and Description |
---|
ConfigController()
Initializes a newly created
ConfigController . |
Modifier and Type | Method and Description |
---|---|
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.
|
public ConfigController()
ConfigController
. Simultaneously initializes new
ConfigParser
and ConfigData
.public void readFigures(java.util.Map<java.lang.String,Parameter> parsedParameterList) throws FileNotFoundException, ConfigException
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.public void readAttributes() throws ConfigException, FileNotFoundException
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.public void readConfig() throws ConfigException, FileNotFoundException
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.public void readTypes() throws ConfigException, FileNotFoundException
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.public ConfigData getData()
public CommonTypes getCommonTypes()
public java.util.Map<java.lang.String,Figure> getFigureList()