Class ConvertBeanToMapOperation
- java.lang.Object
-
- de.gebit.integrity.runner.operations.ConvertBeanToMapOperation
-
- All Implemented Interfaces:
Operation<java.lang.Object,java.lang.Object,java.util.Map<java.lang.String,java.lang.Object>>
public class ConvertBeanToMapOperation extends java.lang.Object implements Operation<java.lang.Object,java.lang.Object,java.util.Map<java.lang.String,java.lang.Object>>
This operation converts a given single parameter to a key-value-pair map. Meant to be used like:
(aVariableWithABeanObject asMap)- Author:
- Rene Schneider - initial API and implementation
-
-
Field Summary
Fields Modifier and Type Field Description protected ValueConverter
valueConverter
The value converter being used.
-
Constructor Summary
Constructors Constructor Description ConvertBeanToMapOperation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>
execute(java.lang.Object aParameter, java.lang.Object anUnusedSecondParameter)
Executes the operation logic.
-
-
-
Field Detail
-
valueConverter
@Inject protected ValueConverter valueConverter
The value converter being used.
-
-
Method Detail
-
execute
public java.util.Map<java.lang.String,java.lang.Object> execute(java.lang.Object aParameter, java.lang.Object anUnusedSecondParameter)
Description copied from interface:Operation
Executes the operation logic.- Specified by:
execute
in interfaceOperation<java.lang.Object,java.lang.Object,java.util.Map<java.lang.String,java.lang.Object>>
- Parameters:
aParameter
- the prefix parameter, or null if none was given or the value is not available at the time of the callanUnusedSecondParameter
- the postfix parameter, or null if none was given or the value is not available at the time of the call- Returns:
- the result value
-
-