org.webdocwf.util.loader.transformation
Class DateTransform

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

public class DateTransform
extends java.lang.Object
implements Transformer

This class implements Transformer interface. It can be used to transform date from one format to another Date: 22.07.2004.

Version:
1.0
Author:
Zeljko Kovacevic

Constructor Summary
DateTransform()
           
 
Method Summary
 void configure(java.lang.String filePath)
          This method uses to set configuration string which contains pattern for new date format
 void release()
          This method release resources
 java.util.List transformValue(java.util.List valueToTransform)
          This method transform date format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateTransform

public DateTransform()
Method Detail

configure

public void configure(java.lang.String filePath)
               throws java.lang.Exception
This method uses to set configuration string which contains pattern for new date format

Specified by:
configure in interface Transformer
Parameters:
filePath - 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 transform date format

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.