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>.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FormulaEvaluatorUtil.AssociationToManyHelper
public FormulaEvaluatorUtil.AssociationToManyHelper()
getTargets
public List<? extends T> getTargets(List<? extends S> sourceObjects)
- Returns a
List of target model objects found by calling
getTargetsInternal(IModelObject) for every object in the sourceObjects
List.
- Parameters:
sourceObjects - the model objects on which
getTargetsInternal(IModelObject) will be called
- Returns:
- a
List of target model objects
getTargetsInternal
protected abstract List<? extends T> getTargetsInternal(S sourceObject)
- Returns a
List of target model objects by following a
1-to-many association from the given source object.
- Parameters:
sourceObject - the IModelObject source for the association
- Returns:
- a
List of target model objects
Copyright © 2015. All rights reserved.