|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IOObject
This is an interface which all input/output objects implement.
Additionally all implementations of this class must implement the
static method classConvertibleTo() which is used to determine
which classes can be converted to each other (and in general
convertibleTo() would simply be a call into this static method).
i.e.
static boolean classConvertibleTo(final Class otherClass)
...
| Method Summary | |
|---|---|
IOObject |
convert(java.lang.Class otherClass)
Convert this object to an object of another class. |
boolean |
convertibleTo(java.lang.Class otherClass)
Check if this object can be converted to another. |
java.lang.Class[] |
listClasses()
Return a Class array of classes that this object is capable of converting itself into. |
| Method Detail |
|---|
boolean convertibleTo(java.lang.Class otherClass)
otherClass - another class to check.
true is returned if this
object can be converted to the given class, false otherwise.IOObject convert(java.lang.Class otherClass)
otherClass - another class to cast the object to.
convertibleTo(java.lang.Class) will have returned true
when the cast is
possible and false otherwise.)java.lang.Class[] listClasses()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||