ru.onego.industrial.catalog.util
Class FunctionsAction

java.lang.Object
  extended by ru.onego.industrial.catalog.util.FunctionsAction
All Implemented Interfaces:
Action

public class FunctionsAction
extends java.lang.Object
implements Action

Action implements processing value with help of functions.

Version:
1.0
Author:
Lev Levin

Constructor Summary
FunctionsAction()
          Constructor for the objects.
 
Method Summary
 java.lang.String getName()
          Returns name of this action.
 java.lang.Object processValue(java.lang.String column, java.lang.Object value)
          Implementation of the action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FunctionsAction

public FunctionsAction()
                throws UtilException
Constructor for the objects. Loads initial parameters from the parser.ini file.

Throws:
UtilException - Thrown if error occur while reading parser.ini file
Method Detail

getName

public java.lang.String getName()
Returns name of this action.

Specified by:
getName in interface Action
Returns:
"Functions processor"

processValue

public java.lang.Object processValue(java.lang.String column,
                                     java.lang.Object value)
Description copied from interface: Action
Implementation of the action. Method takes value, treats it in any way and returns result. Additionally, it can check column name to decide, if action should be skipped or sort of...

Specified by:
processValue in interface Action
Parameters:
column - Name of the column holding given value
value - Value to be treated
Returns:
Treated value