Class BaseConfiguration

  • All Implemented Interfaces:
    Map<Object,​Object>, org.apache.commons.configuration.Configuration

    public class BaseConfiguration
    extends AbstractConfiguration<org.apache.commons.configuration.CompositeConfiguration>
    Represents a configuration.
    Author:
    aherscu
    • Constructor Detail

      • BaseConfiguration

        public BaseConfiguration​(org.apache.commons.configuration.Configuration... configurations)
        Loads the specified configurations.
        Parameters:
        configurations - the additional configurations; might be null or empty
    • Method Detail

      • groupsOf

        public Stream<Map<String,​String>> groupsOf​(String prefix)
        Given following properties:
         capability1.class           =ANDROID
         capability1.device.name     =Samsung Galaxy S9 Plus WQHD
         capability1.platform.version=8.0
         capability1.appium.version  =1.13.0
        
         capability2.class           =ANDROID
         capability2.device.name     =Samsung Galaxy S9 Plus HD
         capability2.platform.version=8.1
         capability2.appium.version  =1.13.0
         
        calling groupsOf("capability") will yield two groups as following:
         class           =ANDROID
         device.name     =Samsung Galaxy S9 Plus WQHD
         platform.version=8.0
         appium.version  =1.13.0
         
         class           =ANDROID
         device.name     =Samsung Galaxy S9 Plus HD
         platform.version=8.1
         appium.version  =1.13.0
         
        Parameters:
        prefix - the prefix of a group of properties
        Returns:
        groups of properties, where each group is identified by the characters following the prefix up until first dot
      • toString

        public String toString​(CharSequence delimiter)
        Parameters:
        delimiter - character(s) to delimit between entries
        Returns:
        string representation of all entries, where each entry is abbreviated to 127 characters.