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

java.lang.Object
  extended by org.camunda.bpm.dmn.engine.impl.DmnDecisionResultImpl
All Implemented Interfaces:
Serializable, Iterable<DmnDecisionResultEntries>, Collection<DmnDecisionResultEntries>, List<DmnDecisionResultEntries>, DmnDecisionResult

public class DmnDecisionResultImpl
extends Object
implements DmnDecisionResult

See Also:
Serialized Form

Field Summary
static DmnEngineLogger LOG
           
protected  List<DmnDecisionResultEntries> ruleResults
           
 
Constructor Summary
DmnDecisionResultImpl(List<DmnDecisionResultEntries> ruleResults)
           
 
Method Summary
 boolean add(DmnDecisionResultEntries e)
           
 void add(int index, DmnDecisionResultEntries element)
           
 boolean addAll(Collection<? extends DmnDecisionResultEntries> c)
           
 boolean addAll(int index, Collection<? extends DmnDecisionResultEntries> c)
           
protected  List<DmnDecisionResultEntries> asUnmodifiableList()
           
 void clear()
           
<T> List<T>
collectEntries(String outputName)
          Collects the entries for a output name.
 boolean contains(Object o)
           
 boolean containsAll(Collection<?> c)
           
 DmnDecisionResultEntries get(int index)
           
 DmnDecisionResultEntries getFirstResult()
          Returns the first DmnDecisionResultEntries.
 List<Map<String,Object>> getResultList()
          Returns the entries of all decision results.
<T> T
getSingleEntry()
          Returns the value of the single entry of the decision result.
<T extends org.camunda.bpm.engine.variable.value.TypedValue>
T
getSingleEntryTyped()
          Returns the typed value of the single entry of the decision result.
 DmnDecisionResultEntries getSingleResult()
          Returns the single DmnDecisionResultEntries of the result.
 int indexOf(Object o)
           
 boolean isEmpty()
           
 Iterator<DmnDecisionResultEntries> iterator()
           
 int lastIndexOf(Object o)
           
 ListIterator<DmnDecisionResultEntries> listIterator()
           
 ListIterator<DmnDecisionResultEntries> listIterator(int index)
           
 DmnDecisionResultEntries remove(int index)
           
 boolean remove(Object o)
           
 boolean removeAll(Collection<?> c)
           
 boolean retainAll(Collection<?> c)
           
 DmnDecisionResultEntries set(int index, DmnDecisionResultEntries element)
           
 int size()
           
 List<DmnDecisionResultEntries> subList(int fromIndex, int toIndex)
           
 Object[] toArray()
           
<T> T[]
toArray(T[] a)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
equals, hashCode
 

Field Detail

LOG

public static final DmnEngineLogger LOG

ruleResults

protected final List<DmnDecisionResultEntries> ruleResults
Constructor Detail

DmnDecisionResultImpl

public DmnDecisionResultImpl(List<DmnDecisionResultEntries> ruleResults)
Method Detail

getFirstResult

public DmnDecisionResultEntries getFirstResult()
Description copied from interface: DmnDecisionResult
Returns the first DmnDecisionResultEntries.

Specified by:
getFirstResult in interface DmnDecisionResult
Returns:
the first decision result or null if none exits

getSingleResult

public DmnDecisionResultEntries getSingleResult()
Description copied from interface: DmnDecisionResult
Returns the single DmnDecisionResultEntries of the result. Asserts that only one decision result exist.

Specified by:
getSingleResult in interface DmnDecisionResult
Returns:
the single decision result or null if none exists

collectEntries

public <T> List<T> collectEntries(String outputName)
Description copied from interface: DmnDecisionResult
Collects the entries for a output name. The list will contain entries for the output name of every DmnDecisionResultEntries. Note that the list may contains less entries than decision results if an output does not contain a value for the output name.

Specified by:
collectEntries in interface DmnDecisionResult
Type Parameters:
T - the type of the 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: DmnDecisionResult
Returns the entries of all decision results. For every decision result a map of the output names and corresponding entries is returned.

Specified by:
getResultList in interface DmnDecisionResult
Returns:
the list of all entry maps
See Also:
DmnDecisionResultEntries.getEntryMap()

getSingleEntry

public <T> T getSingleEntry()
Description copied from interface: DmnDecisionResult
Returns the value of the single entry of the decision result. Asserts that only one decision result with a single entry exist.

Specified by:
getSingleEntry in interface DmnDecisionResult
Type Parameters:
T - the type of the result entry
Returns:
the value of the single result entry or null if none exists
See Also:
DmnDecisionResult.getSingleEntryTyped()

getSingleEntryTyped

public <T extends org.camunda.bpm.engine.variable.value.TypedValue> T getSingleEntryTyped()
Description copied from interface: DmnDecisionResult
Returns the typed value of the single entry of the decision result. Asserts that only one decision result with a single entry exist.

Specified by:
getSingleEntryTyped in interface DmnDecisionResult
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:
DmnDecisionResult.getSingleEntry()

iterator

public Iterator<DmnDecisionResultEntries> iterator()
Specified by:
iterator in interface Iterable<DmnDecisionResultEntries>
Specified by:
iterator in interface Collection<DmnDecisionResultEntries>
Specified by:
iterator in interface List<DmnDecisionResultEntries>

size

public int size()
Specified by:
size in interface Collection<DmnDecisionResultEntries>
Specified by:
size in interface List<DmnDecisionResultEntries>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection<DmnDecisionResultEntries>
Specified by:
isEmpty in interface List<DmnDecisionResultEntries>

get

public DmnDecisionResultEntries get(int index)
Specified by:
get in interface List<DmnDecisionResultEntries>

contains

public boolean contains(Object o)
Specified by:
contains in interface Collection<DmnDecisionResultEntries>
Specified by:
contains in interface List<DmnDecisionResultEntries>

toArray

public Object[] toArray()
Specified by:
toArray in interface Collection<DmnDecisionResultEntries>
Specified by:
toArray in interface List<DmnDecisionResultEntries>

toArray

public <T> T[] toArray(T[] a)
Specified by:
toArray in interface Collection<DmnDecisionResultEntries>
Specified by:
toArray in interface List<DmnDecisionResultEntries>

add

public boolean add(DmnDecisionResultEntries e)
Specified by:
add in interface Collection<DmnDecisionResultEntries>
Specified by:
add in interface List<DmnDecisionResultEntries>

remove

public boolean remove(Object o)
Specified by:
remove in interface Collection<DmnDecisionResultEntries>
Specified by:
remove in interface List<DmnDecisionResultEntries>

containsAll

public boolean containsAll(Collection<?> c)
Specified by:
containsAll in interface Collection<DmnDecisionResultEntries>
Specified by:
containsAll in interface List<DmnDecisionResultEntries>

addAll

public boolean addAll(Collection<? extends DmnDecisionResultEntries> c)
Specified by:
addAll in interface Collection<DmnDecisionResultEntries>
Specified by:
addAll in interface List<DmnDecisionResultEntries>

addAll

public boolean addAll(int index,
                      Collection<? extends DmnDecisionResultEntries> c)
Specified by:
addAll in interface List<DmnDecisionResultEntries>

removeAll

public boolean removeAll(Collection<?> c)
Specified by:
removeAll in interface Collection<DmnDecisionResultEntries>
Specified by:
removeAll in interface List<DmnDecisionResultEntries>

retainAll

public boolean retainAll(Collection<?> c)
Specified by:
retainAll in interface Collection<DmnDecisionResultEntries>
Specified by:
retainAll in interface List<DmnDecisionResultEntries>

clear

public void clear()
Specified by:
clear in interface Collection<DmnDecisionResultEntries>
Specified by:
clear in interface List<DmnDecisionResultEntries>

set

public DmnDecisionResultEntries set(int index,
                                    DmnDecisionResultEntries element)
Specified by:
set in interface List<DmnDecisionResultEntries>

add

public void add(int index,
                DmnDecisionResultEntries element)
Specified by:
add in interface List<DmnDecisionResultEntries>

remove

public DmnDecisionResultEntries remove(int index)
Specified by:
remove in interface List<DmnDecisionResultEntries>

indexOf

public int indexOf(Object o)
Specified by:
indexOf in interface List<DmnDecisionResultEntries>

lastIndexOf

public int lastIndexOf(Object o)
Specified by:
lastIndexOf in interface List<DmnDecisionResultEntries>

listIterator

public ListIterator<DmnDecisionResultEntries> listIterator()
Specified by:
listIterator in interface List<DmnDecisionResultEntries>

listIterator

public ListIterator<DmnDecisionResultEntries> listIterator(int index)
Specified by:
listIterator in interface List<DmnDecisionResultEntries>

subList

public List<DmnDecisionResultEntries> subList(int fromIndex,
                                              int toIndex)
Specified by:
subList in interface List<DmnDecisionResultEntries>

toString

public String toString()
Overrides:
toString in class Object

asUnmodifiableList

protected List<DmnDecisionResultEntries> asUnmodifiableList()


Copyright © 2017 camunda services GmbH. All rights reserved.