Dresden OCL Toolkit

tudresden.ocl.sql.gui
Class ClassSplitterCreator

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

public class ClassSplitterCreator
extends Object
implements StrategyCreator

A StrategyCreator for the ClassSplitter-ClassStrategy

Author:
Andrea Kling
See Also:
ClassSplitter

Field Summary
private static ClassSplitterCreator myInstance
           
private  ClassSplitter strategy
           
 
Constructor Summary
private ClassSplitterCreator()
           
 
Method Summary
static ClassSplitterCreator getInstance()
           
 Object getStrategy()
           
 String getStrategyDescription()
           
 String getStrategyType()
           
 JComponent getStrategyView(ru.novosoft.uml.MBase element)
          a View to make input for StrategyCreation possible.
The JComponent returned tries to dispose its toplevel ancestor when done with input if it is a JDialog, assuming the Dialog was opened only to show this component
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

strategy

private ClassSplitter strategy

myInstance

private static ClassSplitterCreator myInstance
Constructor Detail

ClassSplitterCreator

private ClassSplitterCreator()
Method Detail

getInstance

public static ClassSplitterCreator getInstance()

getStrategyType

public String getStrategyType()
Specified by:
getStrategyType in interface StrategyCreator
Returns:
the Type of Strategy according to Types defined in ORMappingImpl (ORMappingImpl.CLASS)
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)
a View to make input for StrategyCreation possible.
The JComponent returned tries to dispose its toplevel ancestor when done with input if it is a JDialog, assuming the Dialog was opened only to show this component

Specified by:
getStrategyView in interface StrategyCreator
Parameters:
element - the MClassifier that shall be split into several tables
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:
a ClassSplitter, null if not enough data was provided by the view
See Also:
ClassSplitter

Dresden OCL Toolkit

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