org.specrunner.configuration
Interface IConfiguration

All Superinterfaces:
Map<String,Object>
All Known Implementing Classes:
ConfigurationImpl

public interface IConfiguration
extends Map<String,Object>

Stand for a local configuration to be used in a given execution. The configuration is different from a feature setting, a configuration is like a set of features local to the test execution, and a features settings are global to all tests.

Author:
Thiago Santos

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Method Summary
 IConfiguration add(String feature, Object value)
          Add a feature to the configuration.
 Object get(String key, Object defaultValue)
          Get a value from map, if not found, result is 'defaultValue'.
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Method Detail

add

IConfiguration add(String feature,
                   Object value)
Add a feature to the configuration.

Parameters:
feature - The feature name.
value - The feature value.
Returns:
The configuration itself.

get

Object get(String key,
           Object defaultValue)
Get a value from map, if not found, result is 'defaultValue'.

Parameters:
key - A name.
defaultValue - The default value.
Returns:
The key value, or defaultValue, if not found.


Copyright © 2014. All rights reserved.