Configs¶
-
public class
Configs
¶ Stores information about all the created Commcare configurations.
Methods¶
contains¶
deleteConfig¶
getByName¶
-
public Config
getByName
(String name)¶ Returns configuration by its name.
Parameters: - name – the name of the configuration, null will return default configuration
Throws: - ConfigurationNotFoundException – when configuration with the given name doesn’t exists or if no default configuration was defined(only if null was passes as parameter)
Returns: the configuration with given name or default configuration if null was given
getDefault¶
-
public Config
getDefault
()¶ Returns default configuration.
Throws: - ConfigurationNotFoundException – if there were no default configuration defined
Returns: the default configuration
hasDefault¶
-
public boolean
hasDefault
()¶ Checks whether default configuration has been set.
Returns: true if there is default configuration, else otherwise