|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Implementations of this interface can convert instances of one default class into or back from instances of other classes.
| Method Summary | |
boolean |
canConvertFrom(java.lang.Object object)
Returns, if the given object can be converted back to an instance of the default Class type of this implementation. |
boolean |
canConvertTo(java.lang.Object object,
java.lang.Class type)
Returns, if the given object can be converted in an instance of the given class type. |
java.lang.Object |
convertFrom(java.lang.Object object)
Converts the given object back to an instance of the default Class type
of this implementation. |
java.lang.Object |
convertTo(java.lang.Object object,
java.lang.Class type)
Converts the given object in an instance of the given class type and return this instance. |
| Method Detail |
public boolean canConvertTo(java.lang.Object object,
java.lang.Class type)
object - Object which shall be converted.type - Class type to which the given object shall be converted.
public java.lang.Object convertTo(java.lang.Object object,
java.lang.Class type)
object - Object to convert.type - Class type to convert to.
public boolean canConvertFrom(java.lang.Object object)
Class type of this implementation.
object - Object which shall be converted back.public java.lang.Object convertFrom(java.lang.Object object)
Class type
of this implementation.
object - The Object to convert back.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||