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.Object
public boolean evaluate() throws com.konakart.app.KKException
KKException
- an unexpected KKException exceptionpublic int getId()
getId
in interface ExpressionIf
public void setId(int id)
setId
in interface ExpressionIf
id
- the id to setpublic java.lang.String getName()
ExpressionIf
getName
in interface ExpressionIf
public void setName(java.lang.String name)
ExpressionIf
setName
in interface ExpressionIf
name
- the name to setpublic java.lang.String getDescription()
ExpressionIf
getDescription
in interface ExpressionIf
public void setDescription(java.lang.String description)
ExpressionIf
setDescription
in interface ExpressionIf
description
- the description to setpublic java.lang.String getCustom1()
ExpressionIf
getCustom1
in interface ExpressionIf
public void setCustom1(java.lang.String custom1)
ExpressionIf
setCustom1
in interface ExpressionIf
custom1
- the custom1 to setpublic java.lang.String getCustom2()
ExpressionIf
getCustom2
in interface ExpressionIf
public void setCustom2(java.lang.String custom2)
ExpressionIf
setCustom2
in interface ExpressionIf
custom2
- the custom2 to setpublic java.lang.String getCustom3()
ExpressionIf
getCustom3
in interface ExpressionIf
public void setCustom3(java.lang.String custom3)
ExpressionIf
setCustom3
in interface ExpressionIf
custom3
- the custom3 to setpublic ExpressionVariableIf[] getVariableArray()
getVariableArray
in interface ExpressionIf
public void setVariableArray(ExpressionVariableIf[] variableArray)
setVariableArray
in interface ExpressionIf
variableArray
- the variableArray to setpublic int getNumVariables()
getNumVariables
in interface ExpressionIf
public void setNumVariables(int numVariables)
setNumVariables
in interface ExpressionIf
numVariables
- the numVariables to setCopyright © 2018 DS Data Systems UK Ltd.