Dresden OCL Toolkit

tudresden.ocl.sql.gui
Class KeyChooserCreator

java.lang.Object
  extended bytudresden.ocl.sql.gui.KeyChooserCreator
All Implemented Interfaces:
StrategyCreator

public class KeyChooserCreator
extends Object
implements StrategyCreator

a Creator for KeyChooser-KeyStrategies

Author:
Andrea Kling
See Also:
KeyChooser

Field Summary
private static KeyChooserCreator myInstance
           
private  Object strategy
           
 
Constructor Summary
private KeyChooserCreator()
           
 
Method Summary
static KeyChooserCreator getInstance()
           
 Object getStrategy()
           
 String getStrategyDescription()
           
 String getStrategyType()
           
 JComponent getStrategyView(ru.novosoft.uml.MBase element)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myInstance

private static KeyChooserCreator myInstance

strategy

private Object strategy
Constructor Detail

KeyChooserCreator

private KeyChooserCreator()
Method Detail

getInstance

public static KeyChooserCreator getInstance()

getStrategyType

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

getStrategyDescription

public String getStrategyDescription()
Specified by:
getStrategyDescription in interface StrategyCreator
Returns:
a short description of the mapping method

getStrategyView

public JComponent getStrategyView(ru.novosoft.uml.MBase element)
Specified by:
getStrategyView in interface StrategyCreator
Parameters:
element - the MClassifier that shall be provided with a primary key
Returns:
a component making all necessary input for the creation of the Strategy available

getStrategy

public Object getStrategy()
Specified by:
getStrategy in interface StrategyCreator
Returns:
the KeyChooser strategy for the data provided by the view null if not enough data was provided

Dresden OCL Toolkit

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