KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > core > databinding > conversion > Converter


1 /*******************************************************************************
2  * Copyright (c) 2006, 2007 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11
12 package org.eclipse.core.databinding.conversion;
13
14
15 /**
16  * Abstract base class for converters.
17  *
18  * @since 1.0
19  *
20  */

21 public abstract class Converter implements IConverter {
22
23     private Object JavaDoc fromType;
24     private Object JavaDoc toType;
25
26     /**
27      * @param fromType
28      * @param toType
29      */

30     public Converter(Object JavaDoc fromType, Object JavaDoc toType) {
31         this.fromType = fromType;
32         this.toType = toType;
33     }
34
35     public Object JavaDoc getFromType() {
36         return fromType;
37     }
38
39     public Object JavaDoc getToType() {
40         return toType;
41     }
42
43 }
44
Popular Tags