|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.prosyst.mbs.services.datamapper.Expression
public class Expression
Expression.java represents the expression string defined in the mapping xml.
Based on the expression functions contains in the expression it is devided on following types:
Expression.MATH type - contains only mathematical functions and variables
Expression.SIMPLE type - contains only DataMapper functions and variables
Expression.COMBINED - contains both DataMapper and mathematical functions and variables
| Field Summary | |
|---|---|
static int |
COMBINE
|
static int |
MATH
|
static int |
SIMPLE
|
static java.lang.String[] |
TYPE_STR
|
| Constructor Summary | |
|---|---|
Expression(java.lang.String expression,
int type)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getExpression()
|
java.util.Vector |
getFunctions()
Return the function (Vector of Function objects) contains in the expression |
int |
getType()
Returns the expression type - SIMPLE, MATH or COMBINED |
java.util.Vector |
getVarNames()
Return the variable names |
void |
setFunctions(java.util.Vector functions)
Set the functions (Vector of Function objects) contains in the expression |
void |
setVarNames(java.util.Vector varNames)
Set the variables names needed for evaluation of the expression |
java.lang.String |
toString()
to string |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int MATH
public static final int SIMPLE
public static final int COMBINE
public static final java.lang.String[] TYPE_STR
| Constructor Detail |
|---|
public Expression(java.lang.String expression,
int type)
| Method Detail |
|---|
public java.lang.String getExpression()
public int getType()
public void setVarNames(java.util.Vector varNames)
varnames - public java.util.Vector getVarNames()
public void setFunctions(java.util.Vector functions)
functions - public java.util.Vector getFunctions()
public java.lang.String toString()
toString in class java.lang.Object
|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||