Package com.atlassian.bamboo.collections
Class SimpleActionParametersMap
- All Implemented Interfaces:
ActionParametersMap
,Map<String,
Object>
- Direct Known Subclasses:
ActionParametersMapImpl
public class SimpleActionParametersMap
extends com.google.common.collect.ForwardingMap<String,Object>
implements ActionParametersMap
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.common.collect.ForwardingMap
com.google.common.collect.ForwardingMap.StandardEntrySet, com.google.common.collect.ForwardingMap.StandardKeySet, com.google.common.collect.ForwardingMap.StandardValues
-
Constructor Summary
ConstructorDescriptionSimpleActionParametersMap
(Map<String, ?> parameters) Deprecated.SimpleActionParametersMap
(org.apache.struts2.dispatcher.HttpParameters parameters) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
delegate()
void
After you call this, changes will no longer propagate to the ActionContext.boolean
getBoolean
(@Nullable String key) Returns a boolean value from the map of parameters.double
Retrieve Double value from the map of parameters.getFiles()
Returns map of Files uploaded to this form.int
Retrieve Integer value from the map of parameters.long
Retrieve Long value from the map of parameters.Returns internal map of parameters.@Nullable String
Returns a String value from the map of parameters.@NotNull String
Returns a String value from the map of parmeters.@Nullable String[]
getStringArray
(@Nullable String key) Returns a String[] value from the map of parameters.void
Methods inherited from class com.google.common.collect.ForwardingMap
containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, size, standardClear, standardContainsKey, standardContainsValue, standardEquals, standardHashCode, standardIsEmpty, standardPutAll, standardRemove, standardToString, values
Methods inherited from class com.google.common.collect.ForwardingObject
toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, putIfAbsent, remove, replace, replace, replaceAll, size, values
-
Constructor Details
-
SimpleActionParametersMap
public SimpleActionParametersMap(org.apache.struts2.dispatcher.HttpParameters parameters) -
SimpleActionParametersMap
Deprecated.since 6.0 useSimpleActionParametersMap(HttpParameters)
-
-
Method Details
-
getString
@NotNull public @NotNull String getString(@Nullable @Nullable String key, @NotNull @NotNull String defaultString) Description copied from interface:ActionParametersMap
Returns a String value from the map of parmeters. If the key does not exist in the map or the value is null then the defaultString is returned.- Specified by:
getString
in interfaceActionParametersMap
- Parameters:
key
- Key of value to be searched in the mapdefaultString
- the default string to return if the property does not exist in the map- Returns:
- String value of object found or defaultString if not found
-
getString
Description copied from interface:ActionParametersMap
Returns a String value from the map of parameters. If the key does not exist in the map, then null is returned.- Specified by:
getString
in interfaceActionParametersMap
- Parameters:
key
- Key of value to be searched in the map- Returns:
- String value of object found or null if not found
-
getStringArray
Description copied from interface:ActionParametersMap
Returns a String[] value from the map of parameters. If the key does not exist in the map, then null is returned.- Specified by:
getStringArray
in interfaceActionParametersMap
- Parameters:
key
- Key of value to be searched in the map- Returns:
- String[] value of object found or null if not found
-
getDouble
Description copied from interface:ActionParametersMap
Retrieve Double value from the map of parameters. If the key does not exist in the map, or is not convertible to Double then default value is returned.- Specified by:
getDouble
in interfaceActionParametersMap
- Parameters:
key
- Key of value to be searched in the mapdefaultValue
- Default value to be returned if key not found or not convertible to Double- Returns:
- Value of object found or defaultValue if not convertible to Double or not found
-
getInt
Description copied from interface:ActionParametersMap
Retrieve Integer value from the map of parameters. If the key does not exist in the map, or is not convertible to Integer then default value is returned.- Specified by:
getInt
in interfaceActionParametersMap
- Parameters:
key
- Key of value to be searched in the mapdefaultValue
- Default value to be returned if key not found or not convertible to Integer- Returns:
- Value of object found or defaultValue if not convertible to Integer or not found
-
getLong
Description copied from interface:ActionParametersMap
Retrieve Long value from the map of parameters. If the key does not exist in the map, or is not convertible to Long then default value is returned.- Specified by:
getLong
in interfaceActionParametersMap
- Parameters:
key
- Key of value to be searched in the mapdefaultValue
- Default value to be returned if key not found or not convertible to Long- Returns:
- Value of object found or defaultValue if not convertible to Long or not found
-
getBoolean
Description copied from interface:ActionParametersMap
Returns a boolean value from the map of parameters. If it does not exist in the map, then false is returned- Specified by:
getBoolean
in interfaceActionParametersMap
- Parameters:
key
- Key of value to be searched in the map- Returns:
- True if the value converted to true or false otherwise
-
getFiles
Description copied from interface:ActionParametersMap
Returns map of Files uploaded to this form.- Specified by:
getFiles
in interfaceActionParametersMap
- Returns:
- Map of Files uploaded to this form
-
getParameters
Description copied from interface:ActionParametersMap
Returns internal map of parameters.- Specified by:
getParameters
in interfaceActionParametersMap
- Returns:
- Parameters map
-
delegate
-
put
-
clear
public void clear() -
remove
-
putAll
-
detachFromActionContext
public void detachFromActionContext()After you call this, changes will no longer propagate to the ActionContext.
-
SimpleActionParametersMap(HttpParameters)