Dresden OCL Toolkit

tudresden.ocl.sql.orstrategy
Class SimpleTypeMapping

java.lang.Object
  extended bytudresden.ocl.sql.orstrategy.SimpleTypeMapping
All Implemented Interfaces:
DatatypeStrategy

public class SimpleTypeMapping
extends Object
implements DatatypeStrategy

DatatypeMappingStrategy exchanging unknown attribute datatypes for simple datatypes, as for example provided provided by TypeManager

Author:
Andrea Kling
See Also:
TypeManager

Field Summary
private  String type
           
 
Constructor Summary
SimpleTypeMapping(String type)
           
 
Method Summary
 void map(ru.novosoft.uml.foundation.core.MAttribute attribute, Map classToTables, Map classViews)
          allows to have special mappings for certain unknown datatypes recommended for complex or multiple datatypes
 String toString()
          a short description of the Strategy,..
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

type

private String type
Constructor Detail

SimpleTypeMapping

public SimpleTypeMapping(String type)
Parameters:
type - the name of the simple datatype tht should be attatcht to any Attribute
Method Detail

map

public void map(ru.novosoft.uml.foundation.core.MAttribute attribute,
                Map classToTables,
                Map classViews)
Description copied from interface: DatatypeStrategy
allows to have special mappings for certain unknown datatypes recommended for complex or multiple datatypes

Specified by:
map in interface DatatypeStrategy
Parameters:
attribute - an Attribute having an unusual datatype
classToTables - a Map containing for every MClassifier a List of Table
classViews - contains an ObjectView for every MClassifier
See Also:
ObjectView, MClassifier

toString

public String toString()
a short description of the Strategy,.. the datatype used


Dresden OCL Toolkit

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