Package org.faktorips.runtime.formula
Class FormulaEvaluatorUtil.AssociationToManyHelper<S extends IModelObject,T extends IModelObject>
java.lang.Object
org.faktorips.runtime.formula.FormulaEvaluatorUtil.AssociationToManyHelper<S,T>
- Type Parameters:
S- the type of the source objectsT- the type of the association targets
- Enclosing class:
- FormulaEvaluatorUtil
public abstract static class FormulaEvaluatorUtil.AssociationToManyHelper<S extends IModelObject,T extends IModelObject>
extends Object
Helper class for navigating 1-to-many associations from a list of source objects of type
<S> to target objects of type <T>.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetTargets(List<? extends S> sourceObjects) Returns aListof targetmodel objectsfound by callinggetTargetsInternal(IModelObject)for every object in thesourceObjectsList.getTargetsInternal(S sourceObject) Returns aListof targetmodel objectsby following a 1-to-many association from the givensource object.
-
Constructor Details
-
AssociationToManyHelper
public AssociationToManyHelper()
-
-
Method Details
-
getTargets
Returns aListof targetmodel objectsfound by callinggetTargetsInternal(IModelObject)for every object in thesourceObjectsList.- Parameters:
sourceObjects- themodel objectson whichgetTargetsInternal(IModelObject)will be called- Returns:
- a
Listof targetmodel objects
-
getTargetsInternal
Returns aListof targetmodel objectsby following a 1-to-many association from the givensource object.- Parameters:
sourceObject- theIModelObjectsource for the association- Returns:
- a
Listof targetmodel objects
-