|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.info.misc.LyFormula
public abstract class 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 |
Method Summary | |
---|---|
static java.lang.String |
checkExpression(LyEnvironment environment,
java.lang.String expression)
Factory that checks the formula with chosen expression language. |
short |
checkNewValue(LyControl control,
LyObject object,
LyFieldInfoValue newValue,
LyArgument[] args)
Dynamic check the value for the given field. |
LyFormula |
cloneFormula()
Clones this formula. |
boolean |
contains(LyFieldInfo fieldInfo)
Checks if a formula contains the given field info. |
static LyFormula |
formulaFactory(LyInfo info,
java.lang.String expression)
Factory that builds the formula with chosen expression language. |
LyInfoList<LyFieldInfo> |
getDependencies(LyClassInfo classInfo)
|
java.lang.String |
getExpression()
Gets expression of this formula. |
LyInfoList<LyFieldInfo> |
getFormulaFields()
Returns a list of all fieldInfo necessary to compute this formula. |
java.lang.String[] |
getFormulaNames()
Returns a vector of all fieldInfo necessary to compute this formula. |
LyInfoList<LyFieldInfo> |
getImports(LyClassInfo classInfo)
Returns fields imported through relations for the given class info. |
java.lang.String |
getName()
Returns a displayable string of this element. |
abstract java.lang.Object |
getValue(LyObject instance)
Evaluate the formula Return depends on the fieldInto type All values are contained in the LyObject |
abstract 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 |
boolean |
match(LyValueSet values)
Indicates whether the specified values matches the filter criterion. |
boolean |
match(java.lang.Object object)
Indicates whether the specified object matches the filter criterion. |
void |
setInverted(boolean not)
Set the inverted mode of this formula. |
short |
validate(LyControl control,
LyObject object,
LyValueSet newValues,
LyArgument[] args)
Global control of values before creating or modifying an object. |
void |
writeXml(java.io.PrintWriter pw)
Writes XML corresponding to this filter element. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public LyFormula cloneFormula()
public static LyFormula formulaFactory(LyInfo info, java.lang.String expression)
public static java.lang.String checkExpression(LyEnvironment environment, java.lang.String expression)
public abstract java.lang.Object getValue(LyObject instance)
public abstract java.lang.Object getValue(LyValueSet values)
public java.lang.String getExpression()
public LyInfoList<LyFieldInfo> getDependencies(LyClassInfo classInfo)
public final java.lang.String[] getFormulaNames()
public LyInfoList<LyFieldInfo> getFormulaFields()
public boolean contains(LyFieldInfo fieldInfo)
fieldInfo
- The fieldInfo.
public LyInfoList<LyFieldInfo> getImports(LyClassInfo classInfo)
public boolean match(java.lang.Object object)
match
in interface LyFilterElement
object
- Object for which the filter criterion is checked.
public boolean match(LyValueSet values)
match
in interface LyFilterElement
values
- List of values for which the filter criterion is checked.
public void writeXml(java.io.PrintWriter pw)
writeXml
in interface LyFilterElement
pw
- PrintWriter on which the XML is written.public java.lang.String getName()
getName
in interface LyFilterElement
public void setInverted(boolean not)
public short validate(LyControl control, LyObject object, LyValueSet newValues, LyArgument[] args)
validate
in interface LyClassControl
control
- the description of the control.object
- the modified object.newValues
- Set of values to control.args
- the list of arguments specified in the XML description of the control
public short checkNewValue(LyControl control, LyObject object, LyFieldInfoValue newValue, LyArgument[] args)
checkNewValue
in interface LyFieldInfoControl
control
- the description of the control.object
- the modified object.newValue
- field info value to check. This parameter cannot be null.args
- the list of arguments specified in the XML description of the control
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |