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 java.lang.ObjectHelper class to get the values from a list of source objects of type<S>to target type<E>.
-
-
Constructor Summary
Constructors Constructor Description AttributeAccessorHelper()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.util.List<E>getAttributeValues(java.util.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.
-
-
-
Method Detail
-
getAttributeValues
public java.util.List<E> getAttributeValues(java.util.List<? extends S> objectList)
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
protected abstract E getValueInternal(S sourceObject)
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
-
-