org.camunda.bpm.dmn.engine.impl
Class DmnDecisionTableResultImpl
java.lang.Object
org.camunda.bpm.dmn.engine.impl.DmnDecisionTableResultImpl
- All Implemented Interfaces:
- Serializable, Iterable<DmnDecisionRuleResult>, Collection<DmnDecisionRuleResult>, List<DmnDecisionRuleResult>, DmnDecisionTableResult
public class DmnDecisionTableResultImpl
- extends Object
- implements DmnDecisionTableResult
- See Also:
- Serialized Form
LOG
public static final DmnEngineLogger LOG
ruleResults
protected final List<DmnDecisionRuleResult> ruleResults
DmnDecisionTableResultImpl
public DmnDecisionTableResultImpl(List<DmnDecisionRuleResult> ruleResults)
getFirstResult
public DmnDecisionRuleResult getFirstResult()
- Description copied from interface:
DmnDecisionTableResult
- Returns the first
DmnDecisionRuleResult.
- Specified by:
getFirstResult in interface DmnDecisionTableResult
- Returns:
- the first decision rule result or null if none exits
getSingleResult
public DmnDecisionRuleResult getSingleResult()
- Description copied from interface:
DmnDecisionTableResult
- Returns the single
DmnDecisionRuleResult of the result. Which asserts
that only one decision rule result exist.
- Specified by:
getSingleResult in interface DmnDecisionTableResult
- Returns:
- the single decision rule result or null if none exists
collectEntries
public <T> List<T> collectEntries(String outputName)
- Description copied from interface:
DmnDecisionTableResult
- Collects the entries for a output name. The list will contain entries for
the output name of every
DmnDecisionRuleResult. Note that the list
may contains less entries than decision rule results if an output does not
contain a value for the output name.
- Specified by:
collectEntries in interface DmnDecisionTableResult
- Type Parameters:
T - the type of the rule result entry- Parameters:
outputName - the name of the output to collect
- Returns:
- the list of collected output values
getResultList
public List<Map<String,Object>> getResultList()
- Description copied from interface:
DmnDecisionTableResult
- Returns the entries of all decision rule results. For every decision rule
result a map of the output names and corresponding entries is returned.
- Specified by:
getResultList in interface DmnDecisionTableResult
- Returns:
- the list of all entry maps
- See Also:
DmnDecisionRuleResult.getEntryMap()
getSingleEntry
public <T> T getSingleEntry()
- Description copied from interface:
DmnDecisionTableResult
- Returns the value of the single entry of the decision rule result. Asserts that
only one decision rule result with a single entry exist.
- Specified by:
getSingleEntry in interface DmnDecisionTableResult
- Type Parameters:
T - the type of the result entry
- Returns:
- the value of the single result entry or null if none exists
- See Also:
DmnDecisionTableResult.getSingleEntryTyped()
getSingleEntryTyped
public <T extends org.camunda.bpm.engine.variable.value.TypedValue> T getSingleEntryTyped()
- Description copied from interface:
DmnDecisionTableResult
- Returns the typed value of the single entry of the decision rule result. Asserts
that only one decision rule result with a single entry exist.
- Specified by:
getSingleEntryTyped in interface DmnDecisionTableResult
- 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:
DmnDecisionTableResult.getSingleEntry()
iterator
public Iterator<DmnDecisionRuleResult> iterator()
- Specified by:
iterator in interface Iterable<DmnDecisionRuleResult>- Specified by:
iterator in interface Collection<DmnDecisionRuleResult>- Specified by:
iterator in interface List<DmnDecisionRuleResult>
size
public int size()
- Specified by:
size in interface Collection<DmnDecisionRuleResult>- Specified by:
size in interface List<DmnDecisionRuleResult>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface Collection<DmnDecisionRuleResult>- Specified by:
isEmpty in interface List<DmnDecisionRuleResult>
get
public DmnDecisionRuleResult get(int index)
- Specified by:
get in interface List<DmnDecisionRuleResult>
contains
public boolean contains(Object o)
- Specified by:
contains in interface Collection<DmnDecisionRuleResult>- Specified by:
contains in interface List<DmnDecisionRuleResult>
toArray
public Object[] toArray()
- Specified by:
toArray in interface Collection<DmnDecisionRuleResult>- Specified by:
toArray in interface List<DmnDecisionRuleResult>
toArray
public <T> T[] toArray(T[] a)
- Specified by:
toArray in interface Collection<DmnDecisionRuleResult>- Specified by:
toArray in interface List<DmnDecisionRuleResult>
add
public boolean add(DmnDecisionRuleResult e)
- Specified by:
add in interface Collection<DmnDecisionRuleResult>- Specified by:
add in interface List<DmnDecisionRuleResult>
remove
public boolean remove(Object o)
- Specified by:
remove in interface Collection<DmnDecisionRuleResult>- Specified by:
remove in interface List<DmnDecisionRuleResult>
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAll in interface Collection<DmnDecisionRuleResult>- Specified by:
containsAll in interface List<DmnDecisionRuleResult>
addAll
public boolean addAll(Collection<? extends DmnDecisionRuleResult> c)
- Specified by:
addAll in interface Collection<DmnDecisionRuleResult>- Specified by:
addAll in interface List<DmnDecisionRuleResult>
addAll
public boolean addAll(int index,
Collection<? extends DmnDecisionRuleResult> c)
- Specified by:
addAll in interface List<DmnDecisionRuleResult>
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAll in interface Collection<DmnDecisionRuleResult>- Specified by:
removeAll in interface List<DmnDecisionRuleResult>
retainAll
public boolean retainAll(Collection<?> c)
- Specified by:
retainAll in interface Collection<DmnDecisionRuleResult>- Specified by:
retainAll in interface List<DmnDecisionRuleResult>
clear
public void clear()
- Specified by:
clear in interface Collection<DmnDecisionRuleResult>- Specified by:
clear in interface List<DmnDecisionRuleResult>
set
public DmnDecisionRuleResult set(int index,
DmnDecisionRuleResult element)
- Specified by:
set in interface List<DmnDecisionRuleResult>
add
public void add(int index,
DmnDecisionRuleResult element)
- Specified by:
add in interface List<DmnDecisionRuleResult>
remove
public DmnDecisionRuleResult remove(int index)
- Specified by:
remove in interface List<DmnDecisionRuleResult>
indexOf
public int indexOf(Object o)
- Specified by:
indexOf in interface List<DmnDecisionRuleResult>
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOf in interface List<DmnDecisionRuleResult>
listIterator
public ListIterator<DmnDecisionRuleResult> listIterator()
- Specified by:
listIterator in interface List<DmnDecisionRuleResult>
listIterator
public ListIterator<DmnDecisionRuleResult> listIterator(int index)
- Specified by:
listIterator in interface List<DmnDecisionRuleResult>
subList
public List<DmnDecisionRuleResult> subList(int fromIndex,
int toIndex)
- Specified by:
subList in interface List<DmnDecisionRuleResult>
toString
public String toString()
- Overrides:
toString in class Object
asUnmodifiableList
protected List<DmnDecisionRuleResult> asUnmodifiableList()
wrap
public static DmnDecisionTableResultImpl wrap(DmnDecisionResult decisionResult)
Copyright © 2017 camunda services GmbH. All rights reserved.