Package org.faktorips.runtime.formula
Class FormulaEvaluatorUtil.AttributeAccessorHelper<S extends IModelObject,E>
java.lang.Object
org.faktorips.runtime.formula.FormulaEvaluatorUtil.AttributeAccessorHelper<S,E>
- Type Parameters:
S- the type of the source objectsE- the type of the values
- Enclosing class:
- FormulaEvaluatorUtil
public abstract static class FormulaEvaluatorUtil.AttributeAccessorHelper<S extends IModelObject,E>
extends Object
Helper class to get the values from a list of source objects of type
<S> to target
type <E>.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttributeValues(List<? extends S> objectList) Returns aListof values frommodel objectsfound by callinggetValueInternal(IModelObject)for every object in thesourceObjectsList.protected abstract EgetValueInternal(S sourceObject) Returns the value of the property from theIModelObjectby calling the getter method of the property.
-
Constructor Details
-
AttributeAccessorHelper
public AttributeAccessorHelper()
-
-
Method Details
-
getAttributeValues
Returns aListof values frommodel objectsfound by callinggetValueInternal(IModelObject)for every object in thesourceObjectsList.- Parameters:
objectList- theListofmodel objectson whichgetValueInternal(IModelObject)will be called.- Returns:
- a
Listof Values
-
getValueInternal
Returns the value of the property from theIModelObjectby calling the getter method of the property.- Parameters:
sourceObject- theIModelObjectsource- Returns:
- the value of property of the
IModelObject
-