org.webdocwf.util.loader.transformation
Class ConcatenateData

java.lang.Object
  extended by org.webdocwf.util.loader.transformation.ConcatenateData
All Implemented Interfaces:
Transformer

public class ConcatenateData
extends java.lang.Object
implements Transformer

This class implements Transformer interface. It can be used to concatenate data from table with values placed into property file Date: 23.07.2004.

Version:
1.0
Author:
Zeljko Kovacevic

Constructor Summary
ConcatenateData()
           
 
Method Summary
 void configure(java.lang.String filePath)
          This method reads path to property file which is used for replacing data Keys from property file are values from table, and values from property file are values which will be concatenated as prefix or postfix on original value
 void release()
          This method release resources
 java.util.List transformValue(java.util.List valueToTransform)
          This method will concatenate values from property file to values from table as prefix or postfix
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConcatenateData

public ConcatenateData()
Method Detail

configure

public void configure(java.lang.String filePath)
               throws java.lang.Exception
This method reads path to property file which is used for replacing data Keys from property file are values from table, and values from property file are values which will be concatenated as prefix or postfix on original value

Specified by:
configure in interface Transformer
Parameters:
filePath - Path to property file
Throws:
java.lang.Exception

release

public void release()
             throws java.lang.Exception
This method release resources

Specified by:
release in interface Transformer
Throws:
java.lang.Exception

transformValue

public java.util.List transformValue(java.util.List valueToTransform)
                              throws java.lang.Exception
This method will concatenate values from property file to values from table as prefix or postfix

Specified by:
transformValue in interface Transformer
Parameters:
valueToTransform - List for transformation
Returns:
List with transformed values
Throws:
java.lang.Exception


Copyright © 2002-2007 Together - the Workgroup. All Rights Reserved.