|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.konakart.app.Expression
public class Expression
An expression is used to group combinations of expression variables
| Nested Class Summary | |
|---|---|
protected class |
Expression.GroupResult
Class used to store temporary data when evaluating an expression |
| Constructor Summary | |
|---|---|
Expression()
Constructor |
|
Expression(com.workingdogs.village.Record vr,
org.apache.torque.util.Criteria c)
Instantiates the attributes of the Tag object from a Record object |
|
| Method Summary | |
|---|---|
boolean |
evaluate()
The expression is evaluated based on the information found in the array of expression variables. |
java.lang.String |
getCustom1()
Used for custom data |
java.lang.String |
getCustom2()
Used for custom data |
java.lang.String |
getCustom3()
Used for custom data |
java.lang.String |
getDescription()
Description of the expression |
int |
getId()
|
java.lang.String |
getName()
Expression name used to identify it |
int |
getNumVariables()
|
ExpressionVariableIf[] |
getVariableArray()
|
void |
setCustom1(java.lang.String custom1)
Used for custom data |
void |
setCustom2(java.lang.String custom2)
Used for custom data |
void |
setCustom3(java.lang.String custom3)
Used for custom data |
void |
setDescription(java.lang.String description)
Description of the expression |
void |
setId(int id)
|
void |
setName(java.lang.String name)
Expression name used to identify it |
void |
setNumVariables(int numVariables)
|
void |
setVariableArray(ExpressionVariableIf[] variableArray)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Expression()
public Expression(com.workingdogs.village.Record vr,
org.apache.torque.util.Criteria c)
throws com.workingdogs.village.DataSetException
vr - Record containing datac - Criteria containing column names
com.workingdogs.village.DataSetException| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Object
public boolean evaluate()
throws KKException
KKExceptionpublic int getId()
getId in interface ExpressionIfpublic void setId(int id)
setId in interface ExpressionIfid - the id to setpublic java.lang.String getName()
ExpressionIf
getName in interface ExpressionIfpublic void setName(java.lang.String name)
ExpressionIf
setName in interface ExpressionIfname - the name to setpublic java.lang.String getDescription()
ExpressionIf
getDescription in interface ExpressionIfpublic void setDescription(java.lang.String description)
ExpressionIf
setDescription in interface ExpressionIfdescription - the description to setpublic java.lang.String getCustom1()
ExpressionIf
getCustom1 in interface ExpressionIfpublic void setCustom1(java.lang.String custom1)
ExpressionIf
setCustom1 in interface ExpressionIfcustom1 - the custom1 to setpublic java.lang.String getCustom2()
ExpressionIf
getCustom2 in interface ExpressionIfpublic void setCustom2(java.lang.String custom2)
ExpressionIf
setCustom2 in interface ExpressionIfcustom2 - the custom2 to setpublic java.lang.String getCustom3()
ExpressionIf
getCustom3 in interface ExpressionIfpublic void setCustom3(java.lang.String custom3)
ExpressionIf
setCustom3 in interface ExpressionIfcustom3 - the custom3 to setpublic ExpressionVariableIf[] getVariableArray()
public void setVariableArray(ExpressionVariableIf[] variableArray)
variableArray - the variableArray to setpublic int getNumVariables()
getNumVariables in interface ExpressionIfpublic void setNumVariables(int numVariables)
setNumVariables in interface ExpressionIfnumVariables - the numVariables to set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||