net.jbeans.data.converter
Class NoChangeConverter

java.lang.Object
  extended bynet.jbeans.data.converter.DataConverter
      extended bynet.jbeans.data.converter.NoChangeConverter
All Implemented Interfaces:
java.io.Serializable

public final class NoChangeConverter
extends DataConverter

generally describe NoChangeConverter in here

Version:
$Revision: 1.1.1.1 $
Author:
Masahiro Takatsuka (masa@jbeans.net)
See Also:
DataConverter, Serialized Form

Field Summary
 
Fields inherited from class net.jbeans.data.converter.DataConverter
sourceTypes, targetTypes
 
Constructor Summary
NoChangeConverter()
           
 
Method Summary
 java.lang.Object convert(java.lang.Object obj, java.lang.Class class1)
          Converts the specified object "obj" into an object of a class "class1".
 java.lang.Object convert(java.lang.Object obj, java.lang.String classname)
          Converts the specified object "obj" into an object of a class "class1".
protected  void setDataTypes()
          Initializes acceptable soruce and target types.
 
Methods inherited from class net.jbeans.data.converter.DataConverter
getSourceDataTypes, getTargetDataTypes, isSourceDataTypeSupported, isTargetDataTypeSupported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoChangeConverter

public NoChangeConverter()
Method Detail

setDataTypes

protected void setDataTypes()
Initializes acceptable soruce and target types.

Specified by:
setDataTypes in class DataConverter

convert

public final java.lang.Object convert(java.lang.Object obj,
                                      java.lang.Class class1)
                               throws InvalidDataTypeException,
                                      UnsupportedTypeException
Converts the specified object "obj" into an object of a class "class1".

Specified by:
convert in class DataConverter
Throws:
InvalidDataTypeException
UnsupportedTypeException

convert

public java.lang.Object convert(java.lang.Object obj,
                                java.lang.String classname)
                         throws InvalidDataTypeException,
                                UnsupportedTypeException
Converts the specified object "obj" into an object of a class "class1".

Overrides:
convert in class DataConverter
Throws:
InvalidDataTypeException
UnsupportedTypeException


Copyright © 2003 JBean project. All Rights Reserved.