org.eclipse.higgins.sts.api
Interface IObjectContainer

All Known Subinterfaces:
IElement

public interface IObjectContainer

Interface representing contained objects providing conversions between underlying representations

Author:
mikemci at us dot ibm dot com

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
 List getSupportedClasses()
          Gets the List of the Classes supported by the underlying implementation
 void set(Object object)
          Sets the contained object
 

Method Detail

getObjectClass

Class getObjectClass()
Gets the Class of the contained object

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

getSupportedClasses

List getSupportedClasses()
Gets the List of the Classes supported by the underlying implementation

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

set

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

Parameters:
object - the object to set
Throws:
UnsupportedContainedObjectClassException - when object class is not supported by the underlying implementation
Exception

get

Object get()
Gets a clone of the contained object

Returns:
a clone of the contained object

getAs

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:
UnsupportedContainedObjectClassException - when the Class specified by objectClass is not supported by the underlying implementation
Exception