de.uni_paderborn.fujaba.codegen
Class UMLRoleOOHandlerStrategy

java.lang.Object
  extended byde.uni_paderborn.fujaba.codegen.UMLRoleOOHandlerStrategy
Direct Known Subclasses:
UMLRoleOOHandlerToManyStrategy, UMLRoleOOHandlerToOneStrategy

public abstract class UMLRoleOOHandlerStrategy
extends java.lang.Object

Version:
$Revision: 1.9.2.5 $
Author:
Carsten Reckord

Constructor Summary
UMLRoleOOHandlerStrategy()
          Constructor for class UMLRoleOOHandlerStrategy
UMLRoleOOHandlerStrategy(UMLRoleOOHandler handler)
          Constructor for class UMLRoleOOHandlerStrategy
 
Method Summary
 void addToTemplateParameterListeners(TemplateParameterListener listener)
          Access method for an one to n association.
protected  void changeTemplateParameters(FElement element, FAttr attr, java.lang.String blockName, de.upb.tools.fca.FHashMap templateParameters)
          No comment provided by developer, please add a comment to improve documentation.
protected  AccessorOOHandler.MethodDescription createAccessMethod(FRole umlRole, FRole partnerRole, FAttr attr, int methodType, java.lang.String blockName, de.upb.tools.fca.FHashMap templateParameters, FType returnType, FParam[] methodParameters)
          No comment provided by developer, please add a comment to improve documentation.
protected  FCommentary createAssocComment(FRole umlRole, FRole partnerRole, FAttr attr)
           
protected  FAttr createAttr(FRole umlRole, FRole partnerRole, java.lang.String attrType)
          No comment provided by developer, please add a comment to improve documentation.
protected  AccessorOOHandler.MethodDescription createInsertMethod(FRole umlRole, FRole partnerRole, FAttr attr, de.upb.tools.fca.FHashMap templateParameters, java.lang.String blockName, int methodType)
          No comment provided by developer, please add a comment to improve documentation.
protected  AccessorOOHandler.MethodDescription createInsertMethod(FRole umlRole, FRole partnerRole, FAttr attr, de.upb.tools.fca.FHashMap templateParameters, java.lang.String blockName, int methodType, java.lang.String paramName, FType paramType)
          No comment provided by developer, please add a comment to improve documentation.
protected abstract  java.lang.String createKeyChangePostHook(FRole umlRole, FRole partnerRole)
          No comment provided by developer, please add a comment to improve documentation.
protected abstract  java.lang.String createKeyChangePreHook(FRole umlRole, FRole partnerRole)
          No comment provided by developer, please add a comment to improve documentation.
protected  FParam createParam(java.lang.String name, FType type)
          No comment provided by developer, please add a comment to improve documentation.
protected  UMLRoleOOHandlerStrategy findResponsible(FRole umlRole)
          No comment provided by developer, please add a comment to improve documentation.
protected abstract  void generateReadAccessMethods(FRole umlRole, FRole partnerRole, FAttr attr, de.upb.tools.fca.FHashMap templateParameters, java.util.Set accessMethods)
          No comment provided by developer, please add a comment to improve documentation.
 FAttr generateRole(FRole umlRole, java.util.Set readAccessMethods, java.util.Set writeAccessMethods)
          No comment provided by developer, please add a comment to improve documentation.
protected abstract  void generateWriteAccessMethods(FRole umlRole, FRole partnerRole, FAttr attr, de.upb.tools.fca.FHashMap templateParameters, java.util.Set accessMethods)
          No comment provided by developer, please add a comment to improve documentation.
protected abstract  java.lang.String getAttrType(FRole umlRole, FRole partnerRole)
          Get the attrType attribute of the UMLRoleOOHandlerStrategy object
static int getCardinality(FRole umlRole)
           
protected static FType getExternalQualifierType(FRole umlRole)
          Get the externalQualifierType attribute of the UMLRoleOOHandlerStrategy class
 UMLRoleOOHandler getHandler()
          Get the handler attribute of the UMLRoleOOHandlerStrategy object
 UMLRoleOOHandlerStrategy getNext()
          Get the next attribute of the UMLRoleOOHandlerStrategy object
protected  java.lang.String getPartnerAccessMethod(FRole umlRole, FRole partnerRole, int methodType)
          Get the partnerAccessMethod attribute of the UMLRoleOOHandlerStrategy object
protected  java.lang.String getPartnerAccessMethod(FRole umlRole, FRole partnerRole, int methodType, boolean qualified, boolean partnerQualified)
          Get the partnerAccessMethod attribute of the UMLRoleOOHandlerStrategy object
 UMLRoleOOHandlerStrategy getPrevious()
          Get the previous attribute of the UMLRoleOOHandlerStrategy object
static int getQualifiedCardinality(FRole umlRole)
          Get the qualifiedCardinality attribute of the UMLRoleOOHandlerStrategy class
protected  void initHandler(UMLRoleOOHandlerStrategy strategy)
          No comment provided by developer, please add a comment to improve documentation.
protected static boolean isBound(FRole umlRole)
          Get the bound attribute of the FRoleOOHandlerStrategy class
protected static boolean isOrdered(FRole umlRole)
           
abstract  boolean isResponsible(FRole umlRole, FRole partnerRole)
          Get the responsible attribute of the UMLRoleOOHandlerStrategy object
protected static boolean isSorted(FRole umlRole)
           
protected static boolean isToMany(FRole umlRole, FRole partnerRole)
          Get the toMany attribute of the UMLRoleOOHandlerStrategy class
protected  void provideImport(FClass target, FClass clazz)
          No comment provided by developer, please add a comment to improve documentation.
protected  void provideImport(FClass target, FPackage pack)
          No comment provided by developer, please add a comment to improve documentation.
protected  FPackage providePackage(java.lang.String packName)
          No comment provided by developer, please add a comment to improve documentation.
protected  FClass provideReference(java.lang.String className)
          No comment provided by developer, please add a comment to improve documentation.
protected  FType provideType(java.lang.String typeName)
          No comment provided by developer, please add a comment to improve documentation.
 void removeFromTemplateParameterListeners(TemplateParameterListener listener)
          No comment provided by developer, please add a comment to improve documentation.
protected  void setHandler(UMLRoleOOHandler handler)
          Sets the handler attribute of the UMLRoleOOHandlerStrategy object
 boolean setNext(UMLRoleOOHandlerStrategy value)
          Sets the next attribute of the UMLRoleOOHandlerStrategy object
protected  boolean setPrevious(UMLRoleOOHandlerStrategy value)
          Sets the previous attribute of the UMLRoleOOHandlerStrategy object
protected  de.upb.tools.fca.FHashMap setupKeyChangeParameters(FRole umlRole, FRole partnerRole)
          No comment provided by developer, please add a comment to improve documentation.
protected  void setupTemplateParameterListeners()
          No comment provided by developer, please add a comment to improve documentation.
protected  de.upb.tools.fca.FHashMap setupTemplateParameters(FRole umlRole, FRole partnerRole)
          No comment provided by developer, please add a comment to improve documentation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UMLRoleOOHandlerStrategy

public UMLRoleOOHandlerStrategy()
Constructor for class UMLRoleOOHandlerStrategy


UMLRoleOOHandlerStrategy

public UMLRoleOOHandlerStrategy(UMLRoleOOHandler handler)
Constructor for class UMLRoleOOHandlerStrategy

Parameters:
handler - No description provided
Method Detail

setHandler

protected void setHandler(UMLRoleOOHandler handler)
Sets the handler attribute of the UMLRoleOOHandlerStrategy object

Parameters:
handler - The new handler value

getHandler

public UMLRoleOOHandler getHandler()
Get the handler attribute of the UMLRoleOOHandlerStrategy object

Returns:
The handler value

isResponsible

public abstract boolean isResponsible(FRole umlRole,
                                      FRole partnerRole)
Get the responsible attribute of the UMLRoleOOHandlerStrategy object

Parameters:
umlRole - No description provided
partnerRole - No description provided
Returns:
The responsible value

generateReadAccessMethods

protected abstract void generateReadAccessMethods(FRole umlRole,
                                                  FRole partnerRole,
                                                  FAttr attr,
                                                  de.upb.tools.fca.FHashMap templateParameters,
                                                  java.util.Set accessMethods)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
umlRole - No description provided
partnerRole - No description provided
attr - No description provided
templateParameters - No description provided
accessMethods - No description provided

generateWriteAccessMethods

protected abstract void generateWriteAccessMethods(FRole umlRole,
                                                   FRole partnerRole,
                                                   FAttr attr,
                                                   de.upb.tools.fca.FHashMap templateParameters,
                                                   java.util.Set accessMethods)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
umlRole - No description provided
partnerRole - No description provided
attr - No description provided
templateParameters - No description provided
accessMethods - No description provided

getAttrType

protected abstract java.lang.String getAttrType(FRole umlRole,
                                                FRole partnerRole)
Get the attrType attribute of the UMLRoleOOHandlerStrategy object

Parameters:
umlRole - No description provided
partnerRole - No description provided
Returns:
The attrType value

createKeyChangePreHook

protected abstract java.lang.String createKeyChangePreHook(FRole umlRole,
                                                           FRole partnerRole)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
umlRole - No description provided
partnerRole - No description provided
Returns:
No description provided

createKeyChangePostHook

protected abstract java.lang.String createKeyChangePostHook(FRole umlRole,
                                                            FRole partnerRole)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
umlRole - No description provided
partnerRole - No description provided
Returns:
No description provided

setupTemplateParameterListeners

protected void setupTemplateParameterListeners()
No comment provided by developer, please add a comment to improve documentation.


generateRole

public FAttr generateRole(FRole umlRole,
                          java.util.Set readAccessMethods,
                          java.util.Set writeAccessMethods)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
umlRole - No description provided
readAccessMethods - No description provided
writeAccessMethods - No description provided
Returns:
No description provided

setupTemplateParameters

protected de.upb.tools.fca.FHashMap setupTemplateParameters(FRole umlRole,
                                                            FRole partnerRole)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
umlRole - No description provided
partnerRole - No description provided
Returns:
No description provided

setupKeyChangeParameters

protected de.upb.tools.fca.FHashMap setupKeyChangeParameters(FRole umlRole,
                                                             FRole partnerRole)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
umlRole - No description provided
partnerRole - No description provided
Returns:
No description provided

createAttr

protected FAttr createAttr(FRole umlRole,
                           FRole partnerRole,
                           java.lang.String attrType)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
umlRole - No description provided
partnerRole - No description provided
attrType - No description provided
Returns:
No description provided

createAssocComment

protected FCommentary createAssocComment(FRole umlRole,
                                         FRole partnerRole,
                                         FAttr attr)
Parameters:
umlRole -
partnerRole -
attr -
Returns:
No description provided

createAccessMethod

protected AccessorOOHandler.MethodDescription createAccessMethod(FRole umlRole,
                                                                 FRole partnerRole,
                                                                 FAttr attr,
                                                                 int methodType,
                                                                 java.lang.String blockName,
                                                                 de.upb.tools.fca.FHashMap templateParameters,
                                                                 FType returnType,
                                                                 FParam[] methodParameters)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
umlRole - No description provided
partnerRole - No description provided
attr - No description provided
methodType - No description provided
blockName - No description provided
templateParameters - No description provided
returnType - No description provided
methodParameters - No description provided
Returns:
No description provided

createParam

protected FParam createParam(java.lang.String name,
                             FType type)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
name - No description provided
type - No description provided
Returns:
No description provided

createInsertMethod

protected AccessorOOHandler.MethodDescription createInsertMethod(FRole umlRole,
                                                                 FRole partnerRole,
                                                                 FAttr attr,
                                                                 de.upb.tools.fca.FHashMap templateParameters,
                                                                 java.lang.String blockName,
                                                                 int methodType)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
umlRole - No description provided
partnerRole - No description provided
attr - No description provided
templateParameters - No description provided
blockName - No description provided
methodType - No description provided
Returns:
No description provided

createInsertMethod

protected AccessorOOHandler.MethodDescription createInsertMethod(FRole umlRole,
                                                                 FRole partnerRole,
                                                                 FAttr attr,
                                                                 de.upb.tools.fca.FHashMap templateParameters,
                                                                 java.lang.String blockName,
                                                                 int methodType,
                                                                 java.lang.String paramName,
                                                                 FType paramType)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
umlRole - No description provided
partnerRole - No description provided
attr - No description provided
templateParameters - No description provided
blockName - No description provided
methodType - No description provided
paramName - No description provided
paramType - No description provided
Returns:
No description provided

getCardinality

public static int getCardinality(FRole umlRole)
Parameters:
umlRole -
Returns:
The cardinality value

getQualifiedCardinality

public static int getQualifiedCardinality(FRole umlRole)
Get the qualifiedCardinality attribute of the UMLRoleOOHandlerStrategy class

Parameters:
umlRole - No description provided
Returns:
The qualifiedCardinality value

isOrdered

protected static boolean isOrdered(FRole umlRole)
Parameters:
umlRole -
Returns:
The ordered value

isSorted

protected static boolean isSorted(FRole umlRole)
Parameters:
umlRole -
Returns:
The sorted value

isBound

protected static boolean isBound(FRole umlRole)
Get the bound attribute of the FRoleOOHandlerStrategy class

Parameters:
umlRole - No description provided
Returns:
The bound value

isToMany

protected static boolean isToMany(FRole umlRole,
                                  FRole partnerRole)
Get the toMany attribute of the UMLRoleOOHandlerStrategy class

Parameters:
umlRole - No description provided
partnerRole - No description provided
Returns:
The toMany value

getExternalQualifierType

protected static FType getExternalQualifierType(FRole umlRole)
Get the externalQualifierType attribute of the UMLRoleOOHandlerStrategy class

Parameters:
umlRole - No description provided
Returns:
The externalQualifierType value

getPartnerAccessMethod

protected java.lang.String getPartnerAccessMethod(FRole umlRole,
                                                  FRole partnerRole,
                                                  int methodType)
Get the partnerAccessMethod attribute of the UMLRoleOOHandlerStrategy object

Parameters:
umlRole - No description provided
partnerRole - No description provided
methodType - No description provided
Returns:
The partnerAccessMethod value

getPartnerAccessMethod

protected java.lang.String getPartnerAccessMethod(FRole umlRole,
                                                  FRole partnerRole,
                                                  int methodType,
                                                  boolean qualified,
                                                  boolean partnerQualified)
Get the partnerAccessMethod attribute of the UMLRoleOOHandlerStrategy object

Parameters:
umlRole - No description provided
partnerRole - No description provided
methodType - No description provided
qualified - No description provided
partnerQualified - No description provided
Returns:
The partnerAccessMethod value

provideImport

protected void provideImport(FClass target,
                             FPackage pack)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
target - No description provided
pack - No description provided

provideImport

protected void provideImport(FClass target,
                             FClass clazz)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
target - No description provided
clazz - No description provided

provideReference

protected FClass provideReference(java.lang.String className)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
className - No description provided
Returns:
No description provided

provideType

protected FType provideType(java.lang.String typeName)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
typeName - No description provided
Returns:
No description provided

providePackage

protected FPackage providePackage(java.lang.String packName)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
packName - No description provided
Returns:
No description provided

setPrevious

protected boolean setPrevious(UMLRoleOOHandlerStrategy value)
Sets the previous attribute of the UMLRoleOOHandlerStrategy object

Parameters:
value - The new previous value
Returns:
No description provided

getPrevious

public UMLRoleOOHandlerStrategy getPrevious()
Get the previous attribute of the UMLRoleOOHandlerStrategy object

Returns:
The previous value

setNext

public boolean setNext(UMLRoleOOHandlerStrategy value)
Sets the next attribute of the UMLRoleOOHandlerStrategy object

Parameters:
value - The new next value
Returns:
No description provided

initHandler

protected void initHandler(UMLRoleOOHandlerStrategy strategy)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
strategy - No description provided

getNext

public UMLRoleOOHandlerStrategy getNext()
Get the next attribute of the UMLRoleOOHandlerStrategy object

Returns:
The next value

findResponsible

protected UMLRoleOOHandlerStrategy findResponsible(FRole umlRole)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
umlRole - No description provided
Returns:
No description provided

addToTemplateParameterListeners

public void addToTemplateParameterListeners(TemplateParameterListener listener)
Access method for an one to n association.

Parameters:
listener - The object added.

removeFromTemplateParameterListeners

public void removeFromTemplateParameterListeners(TemplateParameterListener listener)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
listener - No description provided

changeTemplateParameters

protected void changeTemplateParameters(FElement element,
                                        FAttr attr,
                                        java.lang.String blockName,
                                        de.upb.tools.fca.FHashMap templateParameters)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
element - No description provided
attr - No description provided
blockName - No description provided
templateParameters - No description provided