Utility method to retrieve an String value from a map in the and provide a default value if the key was not found set.
Syntax
String
getStringOption
(
Map< String,?>
options
,
String
key
,
String
defaultOption
)
Parameters
-
options –
the Map in which the property values reside
-
key –
property name
-
defaultOption –
default value if the property is not found.
Returns
the value from the Map or the default.
Usage
the value from the Map or the default.