Base class for specifications with map-based values. The specification contains a set of key-value pairs that can be formatted as a string on map notation.
| Constructor and description |
|---|
MapBasedSpec
(java.util.Map<java.lang.String, java.lang.String> pInitialValues)Create a new MapBasedSpec. |
| Type | Name and description |
|---|---|
java.lang.String |
asMapNotation()Get a string with the map notation for this specification. |
boolean |
getBoolean(java.lang.String pKey)Get the value of a key as a boolean. |
void |
putBoolean(java.lang.String pKey, boolean pValue)Set value of a key to a boolean value. |
void |
putValue(java.lang.String pKey, java.lang.String pValue)Set the value for a key. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
The specification's map-based values.
Create a new MapBasedSpec.
pInitialValues - The mapping's initial values. The entries in this map will be copied
to this instance's mapping. Keys mapped to null will be ignored.Get a string with the map notation for this specification.
Get the value of a key as a boolean.
pKey - The key to get the value for.Set value of a key to a boolean value.
pKey - The key.pValue - The value.Set the value for a key.
pKey - The key.pValue - The value. If this value is null the key will be removed from the mapping.Groovy Documentation