org.camunda.bpm.dmn.engine.impl
Class DmnDecisionRuleResultImpl

java.lang.Object
  extended by 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

Nested Class Summary
protected  class DmnDecisionRuleResultImpl.DmnDecisionRuleOutputEntry
           
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
static DmnEngineLogger LOG
           
protected  Map<String,org.camunda.bpm.engine.variable.value.TypedValue> outputValues
           
 
Constructor Summary
DmnDecisionRuleResultImpl()
           
 
Method Summary
 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,org.camunda.bpm.engine.variable.value.TypedValue> getEntryMapTyped()
          Returns a map of the typed rule result entry values by output name.
<T extends org.camunda.bpm.engine.variable.value.TypedValue>
T
getEntryTyped(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 org.camunda.bpm.engine.variable.value.TypedValue>
T
getFirstEntryTyped()
          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 org.camunda.bpm.engine.variable.value.TypedValue>
T
getSingleEntryTyped()
          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 putValue(String name, org.camunda.bpm.engine.variable.value.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
equals, hashCode
 

Field Detail

LOG

public static final DmnEngineLogger LOG

outputValues

protected final Map<String,org.camunda.bpm.engine.variable.value.TypedValue> outputValues
Constructor Detail

DmnDecisionRuleResultImpl

public DmnDecisionRuleResultImpl()
Method Detail

putValue

public void putValue(String name,
                     org.camunda.bpm.engine.variable.value.TypedValue value)

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 interface DmnDecisionRuleResult
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 org.camunda.bpm.engine.variable.value.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 interface DmnDecisionRuleResult
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 org.camunda.bpm.engine.variable.value.TypedValue> T getFirstEntryTyped()
Description copied from interface: DmnDecisionRuleResult
Returns the typed value of the first rule result entry.

Specified by:
getFirstEntryTyped in interface DmnDecisionRuleResult
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 org.camunda.bpm.engine.variable.value.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 interface DmnDecisionRuleResult
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 interface DmnDecisionRuleResult
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 interface DmnDecisionRuleResult
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 interface DmnDecisionRuleResult
Returns:
the values of the decision rule result entries
See Also:
DmnDecisionRuleResult.getEntryMapTyped()

getEntryMapTyped

public Map<String,org.camunda.bpm.engine.variable.value.TypedValue> getEntryMapTyped()
Description copied from interface: DmnDecisionRuleResult
Returns a map of the typed rule result entry values by output name.

Specified by:
getEntryMapTyped in interface DmnDecisionRuleResult
Returns:
the typed values of the decision rule result entries
See Also:
DmnDecisionRuleResult.getEntryMap()

size

public int size()
Specified by:
size in interface Map<String,Object>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map<String,Object>

containsKey

public boolean containsKey(Object key)
Specified by:
containsKey in interface Map<String,Object>

keySet

public Set<String> keySet()
Specified by:
keySet in interface Map<String,Object>

values

public Collection<Object> values()
Specified by:
values in interface Map<String,Object>

toString

public String toString()
Overrides:
toString in class Object

containsValue

public boolean containsValue(Object value)
Specified by:
containsValue in interface Map<String,Object>

get

public Object get(Object key)
Specified by:
get in interface Map<String,Object>

put

public Object put(String key,
                  Object value)
Specified by:
put in interface Map<String,Object>

remove

public Object remove(Object key)
Specified by:
remove in interface Map<String,Object>

putAll

public void putAll(Map<? extends String,?> m)
Specified by:
putAll in interface Map<String,Object>

clear

public void clear()
Specified by:
clear in interface Map<String,Object>

entrySet

public Set<Map.Entry<String,Object>> entrySet()
Specified by:
entrySet in interface Map<String,Object>


Copyright © 2016 camunda services GmbH. All rights reserved.