ru.onego.industrial.catalog.util
Interface Action

All Known Implementing Classes:
FunctionsAction

public interface Action

Specifies action to be performed on column value

Version:
1.0
Author:
Lev Levin

Method Summary
 java.lang.String getName()
          Returns name of the action.
 java.lang.Object processValue(java.lang.String column, java.lang.Object value)
          Implementation of the action.
 

Method Detail

getName

java.lang.String getName()
Returns name of the action. This name is shown in the Info panel of the interface dialog.

Returns:
Name of the action.

processValue

java.lang.Object processValue(java.lang.String column,
                              java.lang.Object value)
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...

Parameters:
column - Name of the column holding given value
value - Value to be treated
Returns:
Treated value