tudresden.ocl.sql.gui
Class DefaultStrategyCreator
java.lang.Object
tudresden.ocl.sql.gui.DefaultStrategyCreator
- All Implemented Interfaces:
- StrategyCreator
- public class DefaultStrategyCreator
- extends Object
- implements StrategyCreator
A simple StrategyCreator, that can be used for strategies not
needing an explicit view.
- Author:
- Andrea Kling
- See Also:
ClassStrategy,
KeyStrategy,
DatatypeStrategy,
InheritanceStrategy,
OrderedStrategy,
AssociationStrategy
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
desc
private String desc
type
private String type
strategy
private Object strategy
DefaultStrategyCreator
public DefaultStrategyCreator()
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, may be null
- Returns:
- null as no data is needed
getStrategy
public Object getStrategy()
- Specified by:
getStrategy in interface StrategyCreator
- Returns:
- the Strategy set
setStrategyType
public void setStrategyType(String type)
- Parameters:
type - the Type of Strategy according to Types defined in ORMappingImpl- See Also:
ORMappingImpl
setStrategyDescription
public void setStrategyDescription(String desc)
- Parameters:
desc - a short description of the mapping method
setStrategy
public void setStrategy(Object strategy)
- Parameters:
strategy - the strategy to be returned
Submit a bug
Developed at the Dresden University of Technology.
This software is published under the GNU Lesser General Public License.