LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.info.misc
Class LyMvelFormula

java.lang.Object
  extended by leon.info.misc.LyFormula
      extended by leon.info.misc.LyMvelFormula
All Implemented Interfaces:
LyClassControl, LyControlInterface, LyFieldInfoControl, LyFilterElement

public class LyMvelFormula
extends LyFormula

Class used to compute a formula on a LyFieldInfo.


Field Summary
 
Fields inherited from interface leon.info.LyFilterElement
__VERSION
 
Fields inherited from interface leon.data.datainterface.LyClassControl
__VERSION
 
Fields inherited from interface leon.data.datainterface.LyFieldInfoControl
__VERSION
 
Fields inherited from interface leon.data.datainterface.LyControlInterface
STATUS_ERROR, STATUS_OK, STATUS_WARNING
 
Constructor Summary
LyMvelFormula(LyInfo info, java.lang.String expression)
          Constructs a formula for a given info.
 
Method Summary
 java.lang.Object getValue(LyObject instance)
          Evaluate the formula Return depends on the fieldInto type All values are contained in the LyObject
 java.lang.Object getValue(LyValueSet values)
          Evaluate the formula Return depends on the fieldInto type The value set must contains all the values necessary to compute the formula
 
Methods inherited from class leon.info.misc.LyFormula
checkExpression, checkNewValue, cloneFormula, contains, formulaFactory, getDependencies, getExpression, getFormulaFields, getFormulaNames, getImports, getName, match, match, setInverted, validate, writeXml
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LyMvelFormula

public LyMvelFormula(LyInfo info,
                     java.lang.String expression)
Constructs a formula for a given info.

Method Detail

getValue

public java.lang.Object getValue(LyObject instance)
Evaluate the formula Return depends on the fieldInto type All values are contained in the LyObject

Specified by:
getValue in class LyFormula

getValue

public java.lang.Object getValue(LyValueSet values)
Evaluate the formula Return depends on the fieldInto type The value set must contains all the values necessary to compute the formula

Specified by:
getValue in class LyFormula

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com