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 DmnEngineLoggerLOGprotected Map<String,TypedValue>outputValues
-
Constructor Summary
Constructors Constructor Description DmnDecisionRuleResultImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(Object key)booleancontainsValue(Object value)Set<Map.Entry<String,Object>>entrySet()Objectget(Object key)<T> TgetEntry(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> TgetFirstEntry()Returns the value of the first rule result entry.<T extends TypedValue>
TgetFirstEntryTyped()Returns the typed value of the first rule result entry.<T> TgetSingleEntry()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.booleanisEmpty()Set<String>keySet()Objectput(String key, Object value)voidputAll(Map<? extends String,?> m)voidputAllValues(Map<String,TypedValue> values)voidputValue(String name, TypedValue value)Objectremove(Object key)intsize()StringtoString()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:DmnDecisionRuleResultReturns the value of the rule result entry for a given output name.- Specified by:
getEntryin 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:DmnDecisionRuleResultReturns the typed value of the rule result entry for a given output name.- Specified by:
getEntryTypedin 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:DmnDecisionRuleResultReturns the typed value of the first rule result entry.- Specified by:
getFirstEntryTypedin 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:DmnDecisionRuleResultReturns 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:
getSingleEntryTypedin 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:DmnDecisionRuleResultReturns the value of the first rule result entry.- Specified by:
getFirstEntryin 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:DmnDecisionRuleResultReturns the value of the single entry of the decision rule result. Which asserts that the decision rule result only has one entry.- Specified by:
getSingleEntryin 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:DmnDecisionRuleResultReturns a map of the rule result entry values by output name.- Specified by:
getEntryMapin interfaceDmnDecisionRuleResult- Returns:
- the values of the decision rule result entries
- See Also:
DmnDecisionRuleResult.getEntryMapTyped()
-
getEntryMapTyped
public Map<String,TypedValue> getEntryMapTyped()
Description copied from interface:DmnDecisionRuleResultReturns a map of the typed rule result entry values by output name.- Specified by:
getEntryMapTypedin interfaceDmnDecisionRuleResult- Returns:
- the typed values of the decision rule result entries
- See Also:
DmnDecisionRuleResult.getEntryMap()
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceMap<String,Object>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValuein interfaceMap<String,Object>
-
-