Dresden OCL Toolkit

tudresden.ocl.sql.gui
Class DefaultStrategyCreator

java.lang.Object
  extended bytudresden.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

Field Summary
private  String desc
           
private  Object strategy
           
private  String type
           
 
Constructor Summary
DefaultStrategyCreator()
           
 
Method Summary
 Object getStrategy()
           
 String getStrategyDescription()
           
 String getStrategyType()
           
 JComponent getStrategyView(ru.novosoft.uml.MBase element)
           
 void setStrategy(Object strategy)
           
 void setStrategyDescription(String desc)
           
 void setStrategyType(String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

desc

private String desc

type

private String type

strategy

private Object strategy
Constructor Detail

DefaultStrategyCreator

public DefaultStrategyCreator()
Method Detail

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

Dresden OCL Toolkit

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