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 java.lang.ObjectHelper 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 Constructor Description AssociationToManyHelper()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.util.List<? extends T>getTargets(java.util.List<? extends S> sourceObjects)Returns aListof targetmodel objectsfound by callinggetTargetsInternal(IModelObject)for every object in thesourceObjectsList.protected abstract java.util.List<? extends T>getTargetsInternal(S sourceObject)Returns aListof targetmodel objectsby following a 1-to-many association from the givensource object.
-
-
-
Method Detail
-
getTargets
public java.util.List<? extends T> getTargets(java.util.List<? extends S> sourceObjects)
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
protected abstract java.util.List<? extends T> getTargetsInternal(S sourceObject)
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
-
-