src/core/net/sf/basedb/util/transform/Transformer.java

Code
Comments
Other
Rev Date Author Line
5662 20 Jun 11 nicklas 1 /**
5662 20 Jun 11 nicklas 2   $Id$
5662 20 Jun 11 nicklas 3
5662 20 Jun 11 nicklas 4   Copyright (C) 2011 Nicklas Nordborg
5662 20 Jun 11 nicklas 5
5662 20 Jun 11 nicklas 6   This file is part of BASE - BioArray Software Environment.
5662 20 Jun 11 nicklas 7   Available at http://base.thep.lu.se/
5662 20 Jun 11 nicklas 8
5662 20 Jun 11 nicklas 9   BASE is free software; you can redistribute it and/or
5662 20 Jun 11 nicklas 10   modify it under the terms of the GNU General Public License
5662 20 Jun 11 nicklas 11   as published by the Free Software Foundation; either version 3
5662 20 Jun 11 nicklas 12   of the License, or (at your option) any later version.
5662 20 Jun 11 nicklas 13
5662 20 Jun 11 nicklas 14   BASE is distributed in the hope that it will be useful,
5662 20 Jun 11 nicklas 15   but WITHOUT ANY WARRANTY; without even the implied warranty of
5662 20 Jun 11 nicklas 16   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
5662 20 Jun 11 nicklas 17   GNU General Public License for more details.
5662 20 Jun 11 nicklas 18
5662 20 Jun 11 nicklas 19   You should have received a copy of the GNU General Public License
5662 20 Jun 11 nicklas 20   along with BASE. If not, see <http://www.gnu.org/licenses/>.
5662 20 Jun 11 nicklas 21 */
5662 20 Jun 11 nicklas 22 package net.sf.basedb.util.transform;
5662 20 Jun 11 nicklas 23
5662 20 Jun 11 nicklas 24 import net.sf.basedb.core.DbControl;
5662 20 Jun 11 nicklas 25
5662 20 Jun 11 nicklas 26 /**
5662 20 Jun 11 nicklas 27
5662 20 Jun 11 nicklas 28   @author Nicklas
5662 20 Jun 11 nicklas 29   @since 3.0
5662 20 Jun 11 nicklas 30   @base.modified $Date$
5662 20 Jun 11 nicklas 31  */
5662 20 Jun 11 nicklas 32 public interface Transformer<T, F>
5662 20 Jun 11 nicklas 33 {
5662 20 Jun 11 nicklas 34
5662 20 Jun 11 nicklas 35   /**
5662 20 Jun 11 nicklas 36     Transform the given object into another object.
5662 20 Jun 11 nicklas 37     @param from The source object
5662 20 Jun 11 nicklas 38     @return An instance of the destination class or null
5662 20 Jun 11 nicklas 39   */
5662 20 Jun 11 nicklas 40   public T transform(DbControl dc, F from);
5662 20 Jun 11 nicklas 41   
5662 20 Jun 11 nicklas 42 }