E
- parent objectF
- child objectpublic class SumOnChildren<E extends DataObject<E>,F extends DataObject<F>> extends java.lang.Object implements FormulaElement<E>
Constructor and Description |
---|
SumOnChildren(LinkedToChildrenNavigator<E,F> linkedtochildrennavigator,
FormulaElement<F> childobjectelement)
creates a sum of children formula element
|
Modifier and Type | Method and Description |
---|---|
java.math.BigDecimal |
getValueForFormulaInput(E contextobject)
provides the value as big decimal for formula calculation
|
public SumOnChildren(LinkedToChildrenNavigator<E,F> linkedtochildrennavigator, FormulaElement<F> childobjectelement)
linkedtochildrennavigator
- navigator from a parent to all the relevant
childrenchildobjectelement
- element on the child object to sumpublic java.math.BigDecimal getValueForFormulaInput(E contextobject)
FormulaElement
getValueForFormulaInput
in interface FormulaElement<E extends DataObject<E>>