de.uni_paderborn.fujaba.codegen
Class UMLRoleOOHandlerQualifiedStrategy

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

public abstract class UMLRoleOOHandlerQualifiedStrategy
extends UMLRoleOOHandlerToManyStrategy

Version:
$Revision: 1.5 $
Author:
Carsten Reckord

Constructor Summary
UMLRoleOOHandlerQualifiedStrategy()
           
 
Method Summary
protected  AccessorOOHandler.MethodDescription addQualifier(AccessorOOHandler.MethodDescription description, FType qualifierType, boolean partnerQualified)
          Access method for an one to n association.
protected  AccessorOOHandler.MethodDescription addQualifier(FRole umlRole, FRole partnerRole, AccessorOOHandler.MethodDescription description)
          Access method for an one to n association.
protected  AccessorOOHandler.MethodDescription createAddToMapEntryMethod(FRole umlRole, FRole partnerRole, FAttr attr, de.upb.tools.fca.FHashMap templateParameters)
           
protected  AccessorOOHandler.MethodDescription createAddToMethod(FRole umlRole, FRole partnerRole, FAttr attr, de.upb.tools.fca.FHashMap templateParameters)
           
protected  AccessorOOHandler.MethodDescription createEntriesOfMethod(FRole umlRole, FRole partnerRole, FAttr attr, de.upb.tools.fca.FHashMap templateParameters)
           
protected  AccessorOOHandler.MethodDescription createHasKeyInMethod(FRole umlRole, FRole partnerRole, FAttr attr, de.upb.tools.fca.FHashMap templateParameters)
           
protected  AccessorOOHandler.MethodDescription createHasValueInMethod(FRole umlRole, FRole partnerRole, FAttr attr, de.upb.tools.fca.FHashMap templateParameters)
           
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, boolean qualified)
          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  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, boolean qualified)
          No comment provided by developer, please add a comment to improve documentation.
protected  AccessorOOHandler.MethodDescription createIteratorOfMethod(FRole umlRole, FRole partnerRole, FAttr attr, de.upb.tools.fca.FHashMap templateParameters)
          No comment provided by developer, please add a comment to improve documentation.
protected  AccessorOOHandler.MethodDescription createKeysOfMethod(FRole umlRole, FRole partnerRole, FAttr attr, de.upb.tools.fca.FHashMap templateParameters)
           
protected  AccessorOOHandler.MethodDescription createRemoveValueFromMethod(FRole umlRole, FRole partnerRole, FAttr attr, de.upb.tools.fca.FHashMap templateParameters)
           
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.
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  OOCollectionEnum getContainerType()
          Get the containerType attribute of the UMLRoleOOHandlerQualifiedStrategy object
protected static java.lang.String getMapEntryType(FType keyType, FType valueType)
          Get the mapEntryType attribute of the UMLRoleOOHandlerQualifiedStrategy class
protected  java.lang.String getPartnerAccessMethod(FRole umlRole, FRole partnerRole, int methodType)
          Get the partnerAccessMethod attribute of the UMLRoleOOHandlerQualifiedStrategy object
 boolean isResponsible(FRole umlRole, FRole partnerRole)
          Get the responsible attribute of the UMLRoleOOHandlerStrategy object
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 de.uni_paderborn.fujaba.codegen.UMLRoleOOHandlerToManyStrategy
createGetFirstOfMethod, createGetLastOfMethod, createHasInMethod, createHasInMethod, createIteratorOfMethod, createIteratorOfMethod, createKeyChangePostHook, createKeyChangePreHook, createRemoveAllFromMethod, createRemoveFromMethod, createRemoveMethod, createRemoveMethod, createSizeOfMethod, generateContructorParam, generateFirstLastReadAccessMethods, generateRole, getAttrType, getIteratorType, getPlainIteratorType
 
Methods inherited from class de.uni_paderborn.fujaba.codegen.UMLRoleOOHandlerStrategy
addToTemplateParameterListeners, changeTemplateParameters, createAccessMethod, createAssocComment, createAttr, createParam, findResponsible, getCardinality, getExternalQualifierType, getHandler, getNext, getPartnerAccessMethod, getPrevious, getQualifiedCardinality, initHandler, isBound, isOrdered, isSorted, isToMany, provideImport, provideImport, providePackage, provideReference, provideType, removeFromTemplateParameterListeners, setHandler, setNext, setPrevious, setupKeyChangeParameters, setupTemplateParameterListeners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UMLRoleOOHandlerQualifiedStrategy

public UMLRoleOOHandlerQualifiedStrategy()
Method Detail

isResponsible

public boolean isResponsible(FRole umlRole,
                             FRole partnerRole)
Description copied from class: UMLRoleOOHandlerStrategy
Get the responsible attribute of the UMLRoleOOHandlerStrategy object

Overrides:
isResponsible in class UMLRoleOOHandlerToManyStrategy
Parameters:
umlRole - No description provided
partnerRole - No description provided
Returns:
The responsible value
See Also:
UMLRoleOOHandlerStrategy.isResponsible(de.uni_paderborn.fujaba.metamodel.FRole, de.uni_paderborn.fujaba.metamodel.FRole)

setupTemplateParameters

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

Overrides:
setupTemplateParameters in class UMLRoleOOHandlerToManyStrategy
Parameters:
umlRole - No description provided
partnerRole - No description provided
Returns:
No description provided

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.

Overrides:
generateReadAccessMethods in class UMLRoleOOHandlerToManyStrategy
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.

Overrides:
generateWriteAccessMethods in class UMLRoleOOHandlerToManyStrategy
Parameters:
umlRole - No description provided
partnerRole - No description provided
attr - No description provided
templateParameters - No description provided
accessMethods - No description provided

getContainerType

protected abstract OOCollectionEnum getContainerType()
Get the containerType attribute of the UMLRoleOOHandlerQualifiedStrategy object

Overrides:
getContainerType in class UMLRoleOOHandlerToManyStrategy
Returns:
The containerType value

createHasValueInMethod

protected AccessorOOHandler.MethodDescription createHasValueInMethod(FRole umlRole,
                                                                     FRole partnerRole,
                                                                     FAttr attr,
                                                                     de.upb.tools.fca.FHashMap templateParameters)
Parameters:
umlRole -
partnerRole -
attr -
templateParameters -
Returns:
No description provided

createHasKeyInMethod

protected AccessorOOHandler.MethodDescription createHasKeyInMethod(FRole umlRole,
                                                                   FRole partnerRole,
                                                                   FAttr attr,
                                                                   de.upb.tools.fca.FHashMap templateParameters)
Parameters:
umlRole -
partnerRole -
attr -
templateParameters -
Returns:
No description provided

createIteratorOfMethod

protected AccessorOOHandler.MethodDescription createIteratorOfMethod(FRole umlRole,
                                                                     FRole partnerRole,
                                                                     FAttr attr,
                                                                     de.upb.tools.fca.FHashMap templateParameters)
Description copied from class: UMLRoleOOHandlerToManyStrategy
No comment provided by developer, please add a comment to improve documentation.

Overrides:
createIteratorOfMethod in class UMLRoleOOHandlerToManyStrategy
Parameters:
umlRole -
partnerRole -
attr -
templateParameters -
Returns:
No description provided

createKeysOfMethod

protected AccessorOOHandler.MethodDescription createKeysOfMethod(FRole umlRole,
                                                                 FRole partnerRole,
                                                                 FAttr attr,
                                                                 de.upb.tools.fca.FHashMap templateParameters)
Parameters:
umlRole -
partnerRole -
attr -
templateParameters -
Returns:
No description provided

createEntriesOfMethod

protected AccessorOOHandler.MethodDescription createEntriesOfMethod(FRole umlRole,
                                                                    FRole partnerRole,
                                                                    FAttr attr,
                                                                    de.upb.tools.fca.FHashMap templateParameters)
Parameters:
umlRole -
partnerRole -
attr -
templateParameters -
Returns:
No description provided

createAddToMethod

protected AccessorOOHandler.MethodDescription createAddToMethod(FRole umlRole,
                                                                FRole partnerRole,
                                                                FAttr attr,
                                                                de.upb.tools.fca.FHashMap templateParameters)
Overrides:
createAddToMethod in class UMLRoleOOHandlerToManyStrategy
Parameters:
umlRole -
partnerRole -
attr -
templateParameters -
Returns:
No description provided

createAddToMapEntryMethod

protected AccessorOOHandler.MethodDescription createAddToMapEntryMethod(FRole umlRole,
                                                                        FRole partnerRole,
                                                                        FAttr attr,
                                                                        de.upb.tools.fca.FHashMap templateParameters)
Parameters:
umlRole -
partnerRole -
attr -
templateParameters -
Returns:
No description provided

createRemoveValueFromMethod

protected AccessorOOHandler.MethodDescription createRemoveValueFromMethod(FRole umlRole,
                                                                          FRole partnerRole,
                                                                          FAttr attr,
                                                                          de.upb.tools.fca.FHashMap templateParameters)
Parameters:
umlRole -
partnerRole -
attr -
templateParameters -
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.

Overrides:
createInsertMethod in class UMLRoleOOHandlerStrategy
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

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.

Overrides:
createInsertMethod in class UMLRoleOOHandlerStrategy
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,
                                                                 boolean qualified)
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
qualified - 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,
                                                                 boolean qualified)
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
qualified - No description provided
Returns:
No description provided

addQualifier

protected AccessorOOHandler.MethodDescription addQualifier(FRole umlRole,
                                                           FRole partnerRole,
                                                           AccessorOOHandler.MethodDescription description)
Access method for an one to n association.

Parameters:
umlRole - The object added.
partnerRole - The object added.
description - The object added.
Returns:
No description provided

addQualifier

protected AccessorOOHandler.MethodDescription addQualifier(AccessorOOHandler.MethodDescription description,
                                                           FType qualifierType,
                                                           boolean partnerQualified)
Access method for an one to n association.

Parameters:
description - The object added.
qualifierType - The object added.
partnerQualified - The object added.
Returns:
No description provided

getPartnerAccessMethod

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

Overrides:
getPartnerAccessMethod in class UMLRoleOOHandlerStrategy
Parameters:
umlRole - No description provided
partnerRole - No description provided
methodType - No description provided
Returns:
The partnerAccessMethod value

getMapEntryType

protected static final java.lang.String getMapEntryType(FType keyType,
                                                        FType valueType)
Get the mapEntryType attribute of the UMLRoleOOHandlerQualifiedStrategy class

Parameters:
keyType - No description provided
valueType - No description provided
Returns:
The mapEntryType value