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>.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FormulaEvaluatorUtil.AttributeAccessorHelper
public FormulaEvaluatorUtil.AttributeAccessorHelper()
getAttributeValues
public List<E> getAttributeValues(List<? extends S> objectList)
- Returns a
List of values from model objects found by calling
getValueInternal(IModelObject) for every object in the sourceObjects
List.
- Parameters:
objectList - the List of model objects on which
getValueInternal(IModelObject) will be called.
- Returns:
- a
List of Values
getValueInternal
protected abstract E getValueInternal(S sourceObject)
- Returns the value of the property from the
IModelObject by calling the getter
method of the property.
- Parameters:
sourceObject - the IModelObject source
- Returns:
- the value of property of the
IModelObject
Copyright © 2015. All rights reserved.