org.eclipse.higgins.icard.io
Interface IElement

All Known Subinterfaces:
IICardElement

public interface IElement

Interface representing i-card data prepared for input/output operations. Provide conversions between underlying representations.


Method Summary
 Object get()
          Gets a clone of the contained object
 Object getAs(Class objectClass)
          Gets a clone of the contained object, converted to the Class specified by objectClass
 Class getObjectClass()
          Gets the Class of the contained object
 Class[] getSupportedClasses()
          Gets the array of the Classes supported by the underlying implementation
 void set(Object object)
          Sets the contained object
 

Method Detail

getObjectClass

public Class getObjectClass()
Gets the Class of the contained object

Returns:
the Class of the contained object (null if the contained object is null)

getSupportedClasses

public Class[] getSupportedClasses()
Gets the array of the Classes supported by the underlying implementation

Returns:
the array of the Classes supported by the underlying implementation

set

public void set(Object object)
         throws Exception
Sets the contained object

Parameters:
object - the object to set
Throws:
Exception

get

public Object get()
Gets a clone of the contained object

Returns:
a clone of the contained object

getAs

public Object getAs(Class objectClass)
             throws Exception
Gets a clone of the contained object, converted to the Class specified by objectClass

Parameters:
objectClass - the class of the object to be returned
Returns:
a clone of the contained object, converted to the Class specified by objectClass
Throws:
Exception