Package org.camunda.bpm.dmn.engine.impl
Class DmnDecisionResultEntriesImpl
- java.lang.Object
-
- org.camunda.bpm.dmn.engine.impl.DmnDecisionResultEntriesImpl
-
- All Implemented Interfaces:
java.io.Serializable,java.util.Map<java.lang.String,java.lang.Object>,DmnDecisionResultEntries
public class DmnDecisionResultEntriesImpl extends java.lang.Object implements DmnDecisionResultEntries
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classDmnDecisionResultEntriesImpl.DmnDecisionRuleOutputEntry
-
Field Summary
Fields Modifier and Type Field Description static DmnEngineLoggerLOGprotected java.util.Map<java.lang.String,TypedValue>outputValues
-
Constructor Summary
Constructors Constructor Description DmnDecisionResultEntriesImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(java.lang.Object key)booleancontainsValue(java.lang.Object value)java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>>entrySet()java.lang.Objectget(java.lang.Object key)<T> TgetEntry(java.lang.String name)Returns the value of the result entry for a given output name.java.util.Map<java.lang.String,java.lang.Object>getEntryMap()Returns a map of the result entry values by output name.java.util.Map<java.lang.String,TypedValue>getEntryMapTyped()Returns a map of the typed result entry values by output name.<T extends TypedValue>
TgetEntryTyped(java.lang.String name)Returns the typed value of the result entry for a given output name.<T> TgetFirstEntry()Returns the value of the first result entry.<T extends TypedValue>
TgetFirstEntryTyped()Returns the typed value of the first result entry.<T> TgetSingleEntry()Returns the value of the single entry of the decision result.<T extends TypedValue>
TgetSingleEntryTyped()Returns the typed value of the single entry of the decision result.booleanisEmpty()java.util.Set<java.lang.String>keySet()java.lang.Objectput(java.lang.String key, java.lang.Object value)voidputAll(java.util.Map<? extends java.lang.String,?> m)voidputAllValues(java.util.Map<java.lang.String,TypedValue> values)voidputValue(java.lang.String name, TypedValue value)java.lang.Objectremove(java.lang.Object key)intsize()java.lang.StringtoString()java.util.Collection<java.lang.Object>values()
-
-
-
Field Detail
-
LOG
public static final DmnEngineLogger LOG
-
outputValues
protected final java.util.Map<java.lang.String,TypedValue> outputValues
-
-
Method Detail
-
putValue
public void putValue(java.lang.String name, TypedValue value)
-
putAllValues
public void putAllValues(java.util.Map<java.lang.String,TypedValue> values)
-
getEntry
public <T> T getEntry(java.lang.String name)
Description copied from interface:DmnDecisionResultEntriesReturns the value of the result entry for a given output name.- Specified by:
getEntryin interfaceDmnDecisionResultEntries- Type Parameters:
T- the type of the 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:
DmnDecisionResultEntries.getEntryTyped(String)
-
getEntryTyped
public <T extends TypedValue> T getEntryTyped(java.lang.String name)
Description copied from interface:DmnDecisionResultEntriesReturns the typed value of the result entry for a given output name.- Specified by:
getEntryTypedin interfaceDmnDecisionResultEntries- Type Parameters:
T- the type of the 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:
DmnDecisionResultEntries.getEntry(String)
-
getFirstEntryTyped
public <T extends TypedValue> T getFirstEntryTyped()
Description copied from interface:DmnDecisionResultEntriesReturns the typed value of the first result entry.- Specified by:
getFirstEntryTypedin interfaceDmnDecisionResultEntries- Type Parameters:
T- the type of the result entry- Returns:
- the typed value of the first result entry or null if none exists
- See Also:
DmnDecisionResultEntries.getFirstEntry()
-
getSingleEntryTyped
public <T extends TypedValue> T getSingleEntryTyped()
Description copied from interface:DmnDecisionResultEntriesReturns the typed value of the single entry of the decision result. Asserts that the decision result only has one entry.- Specified by:
getSingleEntryTypedin interfaceDmnDecisionResultEntries- Type Parameters:
T- the type of the result entry- Returns:
- the typed value of the single result entry or null if none exists
- See Also:
DmnDecisionResultEntries.getSingleEntry()
-
getFirstEntry
public <T> T getFirstEntry()
Description copied from interface:DmnDecisionResultEntriesReturns the value of the first result entry.- Specified by:
getFirstEntryin interfaceDmnDecisionResultEntries- Type Parameters:
T- the type of the result entry- Returns:
- the value of the first result entry or null if none exists
- See Also:
DmnDecisionResultEntries.getFirstEntryTyped()
-
getSingleEntry
public <T> T getSingleEntry()
Description copied from interface:DmnDecisionResultEntriesReturns the value of the single entry of the decision result. Asserts that the decision result only has one entry.- Specified by:
getSingleEntryin interfaceDmnDecisionResultEntries- Type Parameters:
T- the type of the result entry- Returns:
- the value of the single result entry or null if none exists
- See Also:
DmnDecisionResultEntries.getSingleEntryTyped()
-
getEntryMap
public java.util.Map<java.lang.String,java.lang.Object> getEntryMap()
Description copied from interface:DmnDecisionResultEntriesReturns a map of the result entry values by output name.- Specified by:
getEntryMapin interfaceDmnDecisionResultEntries- Returns:
- the values of the decision result entries
- See Also:
DmnDecisionResultEntries.getEntryMapTyped()
-
getEntryMapTyped
public java.util.Map<java.lang.String,TypedValue> getEntryMapTyped()
Description copied from interface:DmnDecisionResultEntriesReturns a map of the typed result entry values by output name.- Specified by:
getEntryMapTypedin interfaceDmnDecisionResultEntries- Returns:
- the typed values of the decision result entries
- See Also:
DmnDecisionResultEntries.getEntryMap()
-
size
public int size()
- Specified by:
sizein interfacejava.util.Map<java.lang.String,java.lang.Object>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfacejava.util.Map<java.lang.String,java.lang.Object>
-
containsKey
public boolean containsKey(java.lang.Object key)
- Specified by:
containsKeyin interfacejava.util.Map<java.lang.String,java.lang.Object>
-
keySet
public java.util.Set<java.lang.String> keySet()
- Specified by:
keySetin interfacejava.util.Map<java.lang.String,java.lang.Object>
-
values
public java.util.Collection<java.lang.Object> values()
- Specified by:
valuesin interfacejava.util.Map<java.lang.String,java.lang.Object>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
containsValue
public boolean containsValue(java.lang.Object value)
- Specified by:
containsValuein interfacejava.util.Map<java.lang.String,java.lang.Object>
-
get
public java.lang.Object get(java.lang.Object key)
- Specified by:
getin interfacejava.util.Map<java.lang.String,java.lang.Object>
-
put
public java.lang.Object put(java.lang.String key, java.lang.Object value)- Specified by:
putin interfacejava.util.Map<java.lang.String,java.lang.Object>
-
remove
public java.lang.Object remove(java.lang.Object key)
- Specified by:
removein interfacejava.util.Map<java.lang.String,java.lang.Object>
-
putAll
public void putAll(java.util.Map<? extends java.lang.String,?> m)
- Specified by:
putAllin interfacejava.util.Map<java.lang.String,java.lang.Object>
-
clear
public void clear()
- Specified by:
clearin interfacejava.util.Map<java.lang.String,java.lang.Object>
-
entrySet
public java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>> entrySet()
- Specified by:
entrySetin interfacejava.util.Map<java.lang.String,java.lang.Object>
-
-