org.webdocwf.util.loader.transformation
Class CurrencyConverter

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

public class CurrencyConverter
extends java.lang.Object
implements Transformer

This class implements Transformer interface. It can be used to convert currency from one to another type Date: 23.07.2004.

Version:
1.0
Author:
Zeljko Kovacevic

Constructor Summary
CurrencyConverter()
           
 
Method Summary
 void configure(java.lang.String filePath)
          This method reads path to property file where currency is placed.
 void release()
          This method release resources
 java.util.List transformValue(java.util.List valueToTransform)
          This method will multiply currency from source for given value from property file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CurrencyConverter

public CurrencyConverter()
Method Detail

configure

public void configure(java.lang.String filePath)
               throws java.lang.Exception
This method reads path to property file where currency is placed.

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,
                                     java.lang.ArithmeticException
This method will multiply currency from source for given value from property file

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


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