public class Expression extends java.lang.Object implements ExpressionIf
| Modifier and Type | Class and Description |
|---|---|
protected class |
Expression.GroupResult
Class used to store temporary data when evaluating an expression
|
| Constructor and Description |
|---|
Expression()
Constructor
|
Expression(com.workingdogs.village.Record vr,
KKCriteria c)
Instantiates the attributes of the Tag object from a Record object
|
| Modifier and Type | Method and Description |
|---|---|
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() |
public Expression()
public Expression(com.workingdogs.village.Record vr,
KKCriteria c)
throws com.workingdogs.village.DataSetException
vr - Record containing datac - Criteria containing column namescom.workingdogs.village.DataSetException - an unexpected exception due to data in Torque (the database layer)public java.lang.String toString()
toString in class java.lang.Objectpublic boolean evaluate()
throws com.konakart.app.KKException
KKException - an unexpected KKException exceptionpublic int getId()
getId in interface ExpressionIfpublic void setId(int id)
setId in interface ExpressionIfid - the id to setpublic java.lang.String getName()
ExpressionIfgetName in interface ExpressionIfpublic void setName(java.lang.String name)
ExpressionIfsetName in interface ExpressionIfname - the name to setpublic java.lang.String getDescription()
ExpressionIfgetDescription in interface ExpressionIfpublic void setDescription(java.lang.String description)
ExpressionIfsetDescription in interface ExpressionIfdescription - the description to setpublic java.lang.String getCustom1()
ExpressionIfgetCustom1 in interface ExpressionIfpublic void setCustom1(java.lang.String custom1)
ExpressionIfsetCustom1 in interface ExpressionIfcustom1 - the custom1 to setpublic java.lang.String getCustom2()
ExpressionIfgetCustom2 in interface ExpressionIfpublic void setCustom2(java.lang.String custom2)
ExpressionIfsetCustom2 in interface ExpressionIfcustom2 - the custom2 to setpublic java.lang.String getCustom3()
ExpressionIfgetCustom3 in interface ExpressionIfpublic void setCustom3(java.lang.String custom3)
ExpressionIfsetCustom3 in interface ExpressionIfcustom3 - the custom3 to setpublic ExpressionVariableIf[] getVariableArray()
getVariableArray in interface ExpressionIfpublic void setVariableArray(ExpressionVariableIf[] variableArray)
setVariableArray in interface ExpressionIfvariableArray - the variableArray to setpublic int getNumVariables()
getNumVariables in interface ExpressionIfpublic void setNumVariables(int numVariables)
setNumVariables in interface ExpressionIfnumVariables - the numVariables to setCopyright © 2018 DS Data Systems UK Ltd.