public class AdminExpression
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected class |
AdminExpression.GroupResult
Class used to store temporary data when evaluating an expression
|
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
custom1
Used for custom data
|
private java.lang.String |
custom2
Used for custom data
|
private java.lang.String |
custom3
Used for custom data
|
private java.lang.String |
description
Description of the expression
|
private int |
id
id
|
private java.lang.String |
name
Expression name used to identify it
|
private int |
numVariables
The number of variables contained by the expression
|
private AdminExpressionVariable[] |
variableArray
An array of expression variables
|
Constructor and Description |
---|
AdminExpression()
Constructor
|
AdminExpression(com.workingdogs.village.Record vr,
com.konakart.db.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() |
java.lang.String |
getCustom2() |
java.lang.String |
getCustom3() |
java.lang.String |
getDescription() |
int |
getId() |
java.lang.String |
getName() |
int |
getNumVariables() |
AdminExpressionVariable[] |
getVariableArray() |
void |
setCustom1(java.lang.String custom1) |
void |
setCustom2(java.lang.String custom2) |
void |
setCustom3(java.lang.String custom3) |
void |
setDescription(java.lang.String description) |
void |
setId(int id) |
void |
setName(java.lang.String name) |
void |
setNumVariables(int numVariables) |
void |
setVariableArray(AdminExpressionVariable[] variableArray) |
java.lang.String |
toString() |
private int id
private java.lang.String name
private java.lang.String description
private int numVariables
private java.lang.String custom1
private java.lang.String custom2
private java.lang.String custom3
private AdminExpressionVariable[] variableArray
public AdminExpression()
public AdminExpression(com.workingdogs.village.Record vr, com.konakart.db.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 KKAdminException
KKAdminException
- an unexpected exception in the KonaKart Admin engine unexpected exception in the KonaKart Admin Enginepublic int getId()
public void setId(int id)
id
- the id to setpublic java.lang.String getName()
public void setName(java.lang.String name)
name
- the name to setpublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- the description to setpublic java.lang.String getCustom1()
public void setCustom1(java.lang.String custom1)
custom1
- the custom1 to setpublic java.lang.String getCustom2()
public void setCustom2(java.lang.String custom2)
custom2
- the custom2 to setpublic java.lang.String getCustom3()
public void setCustom3(java.lang.String custom3)
custom3
- the custom3 to setpublic int getNumVariables()
public void setNumVariables(int numVariables)
numVariables
- the numVariables to setpublic AdminExpressionVariable[] getVariableArray()
public void setVariableArray(AdminExpressionVariable[] variableArray)
variableArray
- the variableArray to setCopyright © 2018 DS Data Systems UK Ltd.