Class ConfigReader


  • public class ConfigReader
    extends Object
    This class reads an xml configuration file, containing the definition of a database connection and the fields used in the database. It provides those definitions as specialized objects.
    Author:
    hellrich
    • Constructor Detail

      • ConfigReader

        public ConfigReader​(InputStream def)
    • Method Detail

      • getTypeSystemFiles

        public List<File> getTypeSystemFiles()
      • getTypeSystemPaths

        protected List<String> getTypeSystemPaths​(byte[] mergedConfigData)
                                           throws com.ximpleware.XPathParseException,
                                                  CoStoSysException
        Returns the type system files from the configuration.
        Parameters:
        mergedConfigData -
        Returns:
        - String representations of the elements
        Throws:
        com.ximpleware.XPathParseException
        CoStoSysException
      • getDatabaseConfig

        public DBConfig getDatabaseConfig()
        Accessing the Database Configuration
        Returns:
        - DatabaseConfig Object
      • getFieldConfigs

        public FieldConfigurationManager getFieldConfigs()

        Accessing the Field Definitions.

        The returned map consists of pairs in the form (schemaName, fieldConfig) where schemaName is the name of the table schema represented by fieldConfig.

        Returns:
        - A map containing all table schemas in the default and in the user configuration.
      • getActiveDataTable

        public String getActiveDataTable()
        Returns:
        the activeDataTable
      • getActiveDataSchema

        public String getActiveDataSchema()
      • getActiveSchemaName

        public String getActiveSchemaName()
        Returns:
        the activeSchemaName
      • getMergedConfigData

        public byte[] getMergedConfigData()
        Returns:
        the mergedConfigData
      • getTableSchemaNames

        public List<String> getTableSchemaNames()