Framework Professional Edition Package


com.prosyst.mbs.services.datamapper
Interface DataMap


public interface DataMap

DataMap.java represents the basic structure of the mapping xml Contains name, expression and type of the value

Author:
Niki Dimitrov

Field Summary
static int BOOLEAN
           
static int BYTE
          value types
static int BYTE_ARR
           
static int CHAR
           
static int DOUBLE
           
static int FLOAT
           
static int INTEGER
           
static int INTEGER_ARR
           
static int LONG
           
static java.lang.String[] MAP_STRINGS
           
static int MAP_TYPE
           
static int MAPPING_TYPE
           
static int SHORT
           
static int STRING
           
static java.lang.String[] TYPE_STRINGS
           
static int VAR_TYPE
          property types
 
Method Summary
 java.lang.Object evaluateValue(ExpressionEvaluator evaluator, java.util.Dictionary variables)
          Evaluate the expression of the map using the given evaluator and variables needed for the expression.
 Expression getExpression()
          Get expession
 java.lang.String getName()
          Return the name of the map
 java.lang.Object[] getParameters()
          Get parameters
 int getType()
          Return the type of the map - CONST_TYPE - VAR_TYPE - MAP_TYPE
 int getValueType()
          Return the value type of the map - BOOLEAN, SHORT, INTEGER, STRING ...
 void setExpression(Expression expression)
          Set expression for the map
 void setParameters(java.lang.Object[] params)
          Set parameters to this DataMap - such as encoding in String values
 

Field Detail

VAR_TYPE

static final int VAR_TYPE
property types

See Also:
Constant Field Values

MAP_TYPE

static final int MAP_TYPE
See Also:
Constant Field Values

MAPPING_TYPE

static final int MAPPING_TYPE
See Also:
Constant Field Values

MAP_STRINGS

static final java.lang.String[] MAP_STRINGS

BYTE

static final int BYTE
value types

See Also:
Constant Field Values

SHORT

static final int SHORT
See Also:
Constant Field Values

INTEGER

static final int INTEGER
See Also:
Constant Field Values

LONG

static final int LONG
See Also:
Constant Field Values

FLOAT

static final int FLOAT
See Also:
Constant Field Values

DOUBLE

static final int DOUBLE
See Also:
Constant Field Values

STRING

static final int STRING
See Also:
Constant Field Values

BOOLEAN

static final int BOOLEAN
See Also:
Constant Field Values

CHAR

static final int CHAR
See Also:
Constant Field Values

BYTE_ARR

static final int BYTE_ARR
See Also:
Constant Field Values

INTEGER_ARR

static final int INTEGER_ARR
See Also:
Constant Field Values

TYPE_STRINGS

static final java.lang.String[] TYPE_STRINGS
Method Detail

getName

java.lang.String getName()
Return the name of the map

Returns:

getValueType

int getValueType()
Return the value type of the map - BOOLEAN, SHORT, INTEGER, STRING ...

Returns:

getType

int getType()
Return the type of the map - CONST_TYPE - VAR_TYPE - MAP_TYPE


setExpression

void setExpression(Expression expression)
Set expression for the map


getExpression

Expression getExpression()
Get expession

Returns:

evaluateValue

java.lang.Object evaluateValue(ExpressionEvaluator evaluator,
                               java.util.Dictionary variables)
                               throws java.lang.Exception
Evaluate the expression of the map using the given evaluator and variables needed for the expression. The result value is Object of map's valueType.

Parameters:
variables -
Returns:
evaluated value
Throws:
java.lang.Exception

setParameters

void setParameters(java.lang.Object[] params)
Set parameters to this DataMap - such as encoding in String values

Parameters:
params -

getParameters

java.lang.Object[] getParameters()
Get parameters

Returns:
params

Framework Professional Edition Package


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