Class CollectorConfiguration


  • public class CollectorConfiguration
    extends Object
    This class define the configuration of a collector.
    Since:
    2.0
    Author:
    Laurent Jourdren
    • Constructor Detail

      • CollectorConfiguration

        public CollectorConfiguration​(Map<String,​String> map)
        Public constructor.
        Parameters:
        map - Collector configuration
      • CollectorConfiguration

        public CollectorConfiguration​(CollectorConfiguration conf)
        Public constructor.
        Parameters:
        conf - Collector configuration
    • Method Detail

      • get

        public String get​(String key)
        Get a setting value.
        Parameters:
        key - the setting key
        Returns:
        the value of the setting or null if the setting does not exists
      • get

        public String get​(String key,
                          String defaultValue)
        Get a setting value.
        Parameters:
        key - the setting key
        defaultValue - default value
        Returns:
        the value of the setting or null if the setting does not exists
      • getInt

        public int getInt​(String key,
                          int defaultValue)
        Get a setting value as an integer value.
        Parameters:
        key - the setting key
        Returns:
        the integer value of the setting
      • getDouble

        public double getDouble​(String key,
                                double defaultValue)
        Get a setting value as a double value.
        Parameters:
        key - the setting key
        Returns:
        the integer value of the setting
      • getTrimmedLowerCase

        public String getTrimmedLowerCase​(String key)
        Get a setting value in lower case.
        Parameters:
        key - the setting key
        Returns:
        the trimmed lower case value of the setting or null if the setting does not exists
      • getFile

        public File getFile​(String key)
        Get a setting value as a File object.
        Parameters:
        key - the setting key
        Returns:
        the File value of the setting or null if the setting does not exists
      • getBoolean

        public boolean getBoolean​(String key)
        Get a setting value.
        Parameters:
        key - the setting key
        Returns:
        the boolean value of the setting
      • getBoolean

        public boolean getBoolean​(String key,
                                  boolean defaultValue)
        Get a setting value.
        Parameters:
        key - the setting key
        defaultValue - default value
        Returns:
        the boolean value of the setting
      • getSampleSheet

        public fr.ens.biologie.genomique.kenetre.illumina.samplesheet.SampleSheet getSampleSheet​(String key)
        Get a sample sheet.
        Parameters:
        key - the setting key
        Returns:
        the sample sheet in the configuration or an empty sample sheet
      • containsKey

        public boolean containsKey​(String key)
        Test if the configuration contains a key.
        Parameters:
        key - the key to test
        Returns:
        true if the configuration contains the key
      • entrySet

        public Set<Map.Entry<String,​String>> entrySet()
        Get an entry set of the setting values.
        Returns:
        an entry set of the settings