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
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DmnEngineLoggerprotected final Map<String,TypedValue> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()<T> TReturns the value of the rule result entry for a given output name.Returns a map of the rule result entry values by output name.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> TReturns the value of the first rule result entry.<T extends TypedValue>
TReturns the typed value of the first rule result entry.<T> TReturns the value of the single entry of the decision rule result.<T extends TypedValue>
TReturns the typed value of the single entry of the decision rule result.booleanisEmpty()keySet()voidvoidputAllValues(Map<String, TypedValue> values) voidputValue(String name, TypedValue value) intsize()toString()values()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
LOG
-
outputValues
-
-
Constructor Details
-
DmnDecisionRuleResultImpl
public DmnDecisionRuleResultImpl()
-
-
Method Details
-
putValue
-
putAllValues
-
getEntry
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:
-
getEntryTyped
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKeyin interfaceMap<String,Object>
-
keySet
-
values
-
toString
-
containsValue
- Specified by:
containsValuein interfaceMap<String,Object>
-
get
-
put
-
remove
-
putAll
-
clear
public void clear() -
entrySet
-