Dresden OCL Toolkit

tudresden.ocl.sql.gui
Class SimpleTypeMappingCreator

java.lang.Object
  extended bytudresden.ocl.sql.gui.SimpleTypeMappingCreator
All Implemented Interfaces:
DatatypeStrategyCreator, StrategyCreator

public class SimpleTypeMappingCreator
extends Object
implements DatatypeStrategyCreator

A Creator for SimpleTapeMapping-DatatypeStrategies

Author:
Andrea Kling
See Also:
SimpleTypeMapping

Field Summary
private  String type
           
 
Constructor Summary
SimpleTypeMappingCreator(String type)
           
 
Method Summary
 Object getStrategy()
           
 String getStrategyDescription()
           
 String getStrategyType()
           
 JComponent getStrategyView(ru.novosoft.uml.MBase element)
           
 void setAdditionalDatatypes(List classNames)
          use this method to make additional datatypes as for instance classes defined in the model known to the Creator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

private String type
Constructor Detail

SimpleTypeMappingCreator

public SimpleTypeMappingCreator(String type)
Method Detail

setAdditionalDatatypes

public void setAdditionalDatatypes(List classNames)
Description copied from interface: DatatypeStrategyCreator
use this method to make additional datatypes as for instance classes defined in the model known to the Creator

Specified by:
setAdditionalDatatypes in interface DatatypeStrategyCreator
Parameters:
classNames - a List of String with additional valid datatypes

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 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()
Specified by:
getStrategy in interface StrategyCreator
Returns:
a tudresden.ocl.sql.orstrategy.SimpleTypeMapping for type
See Also:
SimpleTypeMapping

Dresden OCL Toolkit

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