01: /**
02: Transformer - Transformer interface.
03: Copyright (C) 2002-2004 Together
04: This library is free software; you can redistribute it and/or
05: modify it under the terms of the GNU Lesser General Public
06: License as published by the Free Software Foundation; either
07: version 2.1 of the License, or (at your option) any later version.
08: This library is distributed in the hope that it will be useful,
09: but WITHOUT ANY WARRANTY; without even the implied warranty of
10: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11: Lesser General Public License for more details.
12: You should have received a copy of the GNU Lesser General Public
13: License along with this library; if not, write to the Free Software
14: Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
15: Transformation.java
16: Date: 05.04.2004.
17: @version 1.0
18: @author: Zoran Milakovic zoran@prozone.co.yu
19: @author: Milosevic Sinisa sinisa@prozone.co.yu
20: */package org.webdocwf.util.loader.transformation;
21:
22: import java.util.List;
23:
24: public interface Transformer {
25:
26: /**
27: * Configure transformer
28: */
29: public void configure(String s) throws Exception;
30:
31: /**
32: * Release resources if necessairly
33: */
34: public void release() throws Exception;
35:
36: /**
37: * This method return List with transformed values for source column(s).
38: */
39: public List transformValue(List valueToTransform) throws Exception;
40:
41: }
|