tudresden.ocl.sql.gui
Class CollectionCreator
java.lang.Object
tudresden.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
myInstance
private static CollectionCreator myInstance
strategy
private DatatypeStrategy strategy
types
List types
CollectionCreator
private CollectionCreator()
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
Submit a bug
Developed at the Dresden University of Technology.
This software is published under the GNU Lesser General Public License.