|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.konakartadmin.app.AdminExpression
public class AdminExpression
An expression is used to group combinations of expression variables
| Nested Class Summary | |
|---|---|
protected class |
AdminExpression.GroupResult
Class used to store temporary data when evaluating an expression |
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
AdminExpression()
Constructor |
|
AdminExpression(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()
|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public AdminExpression()
public AdminExpression(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 interface AdminObjectIftoString in class java.lang.Object
public boolean evaluate()
throws KKAdminException
KKAdminExceptionpublic int getId()
getId in interface AdminObjectIfpublic void setId(int id)
setId in interface AdminObjectIfid - 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 set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||