Dresden OCL Toolkit

tudresden.ocl.sql.gui
Interface StrategyCreator

All Known Subinterfaces:
DatatypeStrategyCreator
All Known Implementing Classes:
ClassSplitterCreator, ClassTypeMappingCreator, CollectionCreator, DefaultStrategyCreator, KeyChooserCreator, SimpleTypeMappingCreator

public interface StrategyCreator

A StrategyCreator is the link between real Strategy objects and the user interface for the choice of strategies. Every choosable strategy needs a StrategyCreator registered in the StrategyManager.

Author:
Andrea Kling
See Also:
StrategyManager

Method Summary
 Object getStrategy()
           
 String getStrategyDescription()
           
 String getStrategyType()
           
 JComponent getStrategyView(ru.novosoft.uml.MBase element)
           
 

Method Detail

getStrategyType

public String getStrategyType()
Returns:
the Type of Strategy according to Types defined in ORMappingImpl
See Also:
ORMappingImpl

getStrategyDescription

public String getStrategyDescription()
Returns:
a short description of the mapping method

getStrategyView

public JComponent getStrategyView(ru.novosoft.uml.MBase element)
Parameters:
element - the element that shall be mapped with the Strategy
Returns:
a component making all necessary input for the creation of the Strategy available (null if no data is needed)

getStrategy

public Object getStrategy()
Returns:
the Strategy, null if not enough data was provided by the view

Dresden OCL Toolkit

Submit a bug
Developed at the Dresden University of Technology.
This software is published under the GNU Lesser General Public License.