g-Eclipse
Release 1.0.0

eu.geclipse.core.model
Interface IConfigurableElementCreator

All Superinterfaces:
IGridElementCreator
All Known Implementing Classes:
AbstractVoCreator

public interface IConfigurableElementCreator
extends IGridElementCreator

A configurable element creator is an element creator that is able to create a grid model element from an IConfiguration. Since IConfiguration can be saved to and loaded from XML files this can be used to restore an element from a corresponding XML.


Method Summary
 IGridElement create(IGridContainer parent, IConfiguration configuration)
          Create a model element from the specified IConfiguration.
 IConfiguration getConfiguration()
          Get the IConfiguration that was formerly set as source for this creator of null if the source was either not yet set or is not an IConfiguration.
 void setConfiguration(IConfiguration configuration)
          Set the specified IConfiguration as source for this creator.
 
Methods inherited from interface eu.geclipse.core.model.IGridElementCreator
create, create, getSource, setSource
 

Method Detail

create

IGridElement create(IGridContainer parent,
                    IConfiguration configuration)
                    throws ProblemException
Create a model element from the specified IConfiguration.

Parameters:
parent - The parent element of the newly created model element.
configuration - The IConfiguration from which to create the element.
Returns:
The newly created element.
Throws:
ProblemException - If the creation of the element failed.

getConfiguration

IConfiguration getConfiguration()
Get the IConfiguration that was formerly set as source for this creator of null if the source was either not yet set or is not an IConfiguration.

Returns:
The IConfiguration which acts as source for this creator.

setConfiguration

void setConfiguration(IConfiguration configuration)
Set the specified IConfiguration as source for this creator.

Parameters:
configuration - The IConfiguration to be the new source for this creator.

g-Eclipse
Release 1.0.0