Package org.camunda.bpm.dmn.engine.impl
Class DmnDecisionRuleResultImpl
- java.lang.Object
-
- org.camunda.bpm.dmn.engine.impl.DmnDecisionRuleResultImpl
-
- All Implemented Interfaces:
Serializable
,Map<String,Object>
,DmnDecisionRuleResult
public class DmnDecisionRuleResultImpl extends Object implements DmnDecisionRuleResult
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static DmnEngineLogger
LOG
protected Map<String,TypedValue>
outputValues
-
Constructor Summary
Constructors Constructor Description DmnDecisionRuleResultImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
containsKey(Object key)
boolean
containsValue(Object value)
Set<Map.Entry<String,Object>>
entrySet()
Object
get(Object key)
<T> T
getEntry(String name)
Returns the value of the rule result entry for a given output name.Map<String,Object>
getEntryMap()
Returns a map of the rule result entry values by output name.Map<String,TypedValue>
getEntryMapTyped()
Returns a map of the typed rule result entry values by output name.<T extends TypedValue>
TgetEntryTyped(String name)
Returns the typed value of the rule result entry for a given output name.<T> T
getFirstEntry()
Returns the value of the first rule result entry.<T extends TypedValue>
TgetFirstEntryTyped()
Returns the typed value of the first rule result entry.<T> T
getSingleEntry()
Returns the value of the single entry of the decision rule result.<T extends TypedValue>
TgetSingleEntryTyped()
Returns the typed value of the single entry of the decision rule result.boolean
isEmpty()
Set<String>
keySet()
Object
put(String key, Object value)
void
putAll(Map<? extends String,?> m)
void
putAllValues(Map<String,TypedValue> values)
void
putValue(String name, TypedValue value)
Object
remove(Object key)
int
size()
String
toString()
Collection<Object>
values()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Field Detail
-
LOG
public static final DmnEngineLogger LOG
-
outputValues
protected final Map<String,TypedValue> outputValues
-
-
Method Detail
-
putValue
public void putValue(String name, TypedValue value)
-
putAllValues
public void putAllValues(Map<String,TypedValue> values)
-
getEntry
public <T> T getEntry(String name)
Description copied from interface:DmnDecisionRuleResult
Returns the value of the rule result entry for a given output name.- Specified by:
getEntry
in interfaceDmnDecisionRuleResult
- Type Parameters:
T
- the type of the rule result entry- Parameters:
name
- the name of the output- Returns:
- the value for the given name or null if no value exists for this name
- See Also:
DmnDecisionRuleResult.getEntryTyped(String)
-
getEntryTyped
public <T extends TypedValue> T getEntryTyped(String name)
Description copied from interface:DmnDecisionRuleResult
Returns the typed value of the rule result entry for a given output name.- Specified by:
getEntryTyped
in interfaceDmnDecisionRuleResult
- Type Parameters:
T
- the type of the rule result entry- Parameters:
name
- the name of the output- Returns:
- the typed value for the given name or null if no value exists for this name
- See Also:
DmnDecisionRuleResult.getEntry(String)
-
getFirstEntryTyped
public <T extends TypedValue> T getFirstEntryTyped()
Description copied from interface:DmnDecisionRuleResult
Returns the typed value of the first rule result entry.- Specified by:
getFirstEntryTyped
in interfaceDmnDecisionRuleResult
- Type Parameters:
T
- the type of the rule result entry- Returns:
- the typed value of the first rule result entry or null if none exists
- See Also:
DmnDecisionRuleResult.getFirstEntry()
-
getSingleEntryTyped
public <T extends TypedValue> T getSingleEntryTyped()
Description copied from interface:DmnDecisionRuleResult
Returns the typed value of the single entry of the decision rule result. Which asserts that the decision rule result only has one entry.- Specified by:
getSingleEntryTyped
in interfaceDmnDecisionRuleResult
- Type Parameters:
T
- the type of the rule result entry- Returns:
- the typed value of the single rule result entry or null if none exists
- See Also:
DmnDecisionRuleResult.getSingleEntry()
-
getFirstEntry
public <T> T getFirstEntry()
Description copied from interface:DmnDecisionRuleResult
Returns the value of the first rule result entry.- Specified by:
getFirstEntry
in interfaceDmnDecisionRuleResult
- Type Parameters:
T
- the type of the rule result entry- Returns:
- the value of the first rule result entry or null if none exists
- See Also:
DmnDecisionRuleResult.getFirstEntryTyped()
-
getSingleEntry
public <T> T getSingleEntry()
Description copied from interface:DmnDecisionRuleResult
Returns the value of the single entry of the decision rule result. Which asserts that the decision rule result only has one entry.- Specified by:
getSingleEntry
in interfaceDmnDecisionRuleResult
- Type Parameters:
T
- the type of the rule result entry- Returns:
- the value of the single rule result entry or null if none exists
- See Also:
DmnDecisionRuleResult.getSingleEntryTyped()
-
getEntryMap
public Map<String,Object> getEntryMap()
Description copied from interface:DmnDecisionRuleResult
Returns a map of the rule result entry values by output name.- Specified by:
getEntryMap
in interfaceDmnDecisionRuleResult
- Returns:
- the values of the decision rule result entries
- See Also:
DmnDecisionRuleResult.getEntryMapTyped()
-
getEntryMapTyped
public Map<String,TypedValue> getEntryMapTyped()
Description copied from interface:DmnDecisionRuleResult
Returns a map of the typed rule result entry values by output name.- Specified by:
getEntryMapTyped
in interfaceDmnDecisionRuleResult
- Returns:
- the typed values of the decision rule result entries
- See Also:
DmnDecisionRuleResult.getEntryMap()
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey
in interfaceMap<String,Object>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue
in interfaceMap<String,Object>
-
-