|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jbeans.data.converter.DataConverter
generally describe DataConverter in here
Serializable
,
Serialized FormField Summary | |
protected java.lang.Class[] |
sourceTypes
|
protected java.lang.Class[] |
targetTypes
|
Constructor Summary | |
DataConverter()
Constracts a new MtDataConverter |
Method Summary | |
protected abstract 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". |
java.lang.Class[] |
getSourceDataTypes()
Returns a list of class which represent classes of source data. |
java.lang.Class[] |
getTargetDataTypes()
Returns a class of target data. |
boolean |
isSourceDataTypeSupported(java.lang.Class class1)
Checks whether the specified class is supported as a source data type. |
boolean |
isTargetDataTypeSupported(java.lang.Class class1)
Checks whether the specified class is supported as a target data type. |
protected abstract void |
setDataTypes()
Initializes acceptable soruce and target types. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected transient java.lang.Class[] sourceTypes
protected transient java.lang.Class[] targetTypes
Constructor Detail |
public DataConverter()
Method Detail |
protected abstract void setDataTypes()
public java.lang.Class[] getSourceDataTypes()
public java.lang.Class[] getTargetDataTypes()
public boolean isSourceDataTypeSupported(java.lang.Class class1)
public boolean isTargetDataTypeSupported(java.lang.Class class1)
public java.lang.Object convert(java.lang.Object obj, java.lang.String classname) throws InvalidDataTypeException, UnsupportedTypeException
InvalidDataTypeException
UnsupportedTypeException
protected abstract java.lang.Object convert(java.lang.Object obj, java.lang.Class class1) throws InvalidDataTypeException, UnsupportedTypeException
InvalidDataTypeException
UnsupportedTypeException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |