View Javadoc
1 /* ------------------------------------------------------------------- 2 * Java source file for the class NoChangeConverter 3 * 4 * Copyright (c), 2002, Masahiro Takatsuka. 5 * All Rights Researved. 6 * 7 * Original Author: Masahiro Takatsuka (masa@jbeans.net) 8 * $Author: takatsukam $ 9 * 10 * $Date: 2003/07/25 04:51:45 $ 11 * 12 * $Id: NoChangeConverter.java,v 1.1.1.1 2003/07/25 04:51:45 takatsukam Exp $ 13 * 14 * Reference: Document no: 15 * ___ ___ 16 * 17 * To Do: 18 * ___ 19 * 20 ------------------------------------------------------------------- */ 21 22 /* --------------------------- Package ---------------------------- */ 23 package net.jbeans.data.converter; 24 25 /* ------------------ Import classes (packages) ------------------- *//package-summary/html">color="#329900"> ------------------ Import classes (packages) ------------------- *//package-summary.html">color="#329900">/* ------------------ Import classes (packages) ------------------- *//package-summary.html">color="#329900"> ------------------ Import classes (packages) ------------------- */ 26 import net.jbeans.lang.*; 27 import net.jbeans.data.*; 28 29 /*==================================================================== 30 Implementation of class NoChangeConverter 31 ====================================================================*/ 32 /*** 33 * generally describe NoChangeConverter in here 34 * 35 * @version $Revision: 1.1.1.1 $ 36 * @author Masahiro Takatsuka (masa@jbeans.net) 37 * @see DataConverter 38 */ 39 40 public final class NoChangeConverter extends DataConverter { 41 /*** 42 * Initializes acceptable soruce and target types. 43 */ 44 protected void setDataTypes() { 45 this.sourceTypes = new Class[] {java.lang.Object.class}; 46 this.targetTypes = new Class[] {java.lang.Object.class}; 47 } 48 49 /*** 50 * Converts the specified object "obj" into an object of a class "class1". 51 */ 52 public final Object convert(Object obj, Class class1) throws InvalidDataTypeException, UnsupportedTypeException { 53 return obj; 54 } 55 56 /*** 57 * Converts the specified object "obj" into an object of a class "class1". 58 */ 59 public Object convert(Object obj, String classname) throws InvalidDataTypeException, UnsupportedTypeException { 60 return obj; 61 } 62 }

This page was automatically generated by Maven