Framework Professional Edition Package


com.prosyst.mbs.services.datamapper
Class Expression

java.lang.Object
  extended by com.prosyst.mbs.services.datamapper.Expression

public class Expression
extends java.lang.Object

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

Author:
Niki Dimitrov

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

MATH

public static final int MATH
See Also:
Constant Field Values

SIMPLE

public static final int SIMPLE
See Also:
Constant Field Values

COMBINE

public static final int COMBINE
See Also:
Constant Field Values

TYPE_STR

public static final java.lang.String[] TYPE_STR
Constructor Detail

Expression

public Expression(java.lang.String expression,
                  int type)
Method Detail

getExpression

public java.lang.String getExpression()
Returns:
Returns the expression.

getType

public int getType()
Returns the expression type - SIMPLE, MATH or COMBINED

Returns:

setVarNames

public void setVarNames(java.util.Vector varNames)
Set the variables names needed for evaluation of the expression

Parameters:
varnames -

getVarNames

public java.util.Vector getVarNames()
Return the variable names

Returns:

setFunctions

public void setFunctions(java.util.Vector functions)
Set the functions (Vector of Function objects) contains in the expression

Parameters:
functions -

getFunctions

public java.util.Vector getFunctions()
Return the function (Vector of Function objects) contains in the expression

Returns:

toString

public java.lang.String toString()
to string

Overrides:
toString in class java.lang.Object

Framework Professional Edition Package


Copyright © 1999-2007 ProSyst Software GmbH. All Rights Reserved