Dresden OCL Toolkit

tudresden.ocl.sql.gui
Class CollectionCreator

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

public class CollectionCreator
extends Object
implements DatatypeStrategyCreator

A StrategyCreator for CollectionMapper

Author:
Andrea Kling
See Also:
CollectionMapper

Field Summary
private static CollectionCreator myInstance
           
private  DatatypeStrategy strategy
           
(package private)  List types
           
 
Constructor Summary
private CollectionCreator()
           
 
Method Summary
static CollectionCreator getInstance()
           
 Object getStrategy()
           
 String getStrategyDescription()
           
 String getStrategyType()
           
 JComponent getStrategyView(ru.novosoft.uml.MBase element)
           
 void setAdditionalDatatypes(List types)
          provides a List of datatypes (classifiers) defined by the model for use as datatypes in the collection table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myInstance

private static CollectionCreator myInstance

strategy

private DatatypeStrategy strategy

types

List types
Constructor Detail

CollectionCreator

private CollectionCreator()
Method Detail

getInstance

public static CollectionCreator 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

setAdditionalDatatypes

public void setAdditionalDatatypes(List types)
provides a List of datatypes (classifiers) defined by the model for use as datatypes in the collection table

Specified by:
setAdditionalDatatypes in interface DatatypeStrategyCreator
Parameters:
types - a List of String with additional types

getStrategyView

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

getStrategy

public Object getStrategy()
Specified by:
getStrategy in interface StrategyCreator
Returns:
the CollectionMapper defined in the strategyView, null if not enough data ws provided by the view
See Also:
CollectionMapper

Dresden OCL Toolkit

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