de.uni_paderborn.fujaba.codegen
Class UMLRoleOOHandler

java.lang.Object
  extended byde.uni_paderborn.fujaba.codegen.CodeGenStrategyHandler
      extended byde.uni_paderborn.fujaba.codegen.OOGenStrategyHandler
          extended byde.uni_paderborn.fujaba.codegen.AccessorOOHandler
              extended byde.uni_paderborn.fujaba.codegen.UMLRoleOOHandler

public class UMLRoleOOHandler
extends AccessorOOHandler

Class UMLRoleOOHandler

Version:
$Revision: 1.8.2.3 $
Author:
$Author: lowende $

Nested Class Summary
 
Nested classes inherited from class de.uni_paderborn.fujaba.codegen.AccessorOOHandler
AccessorOOHandler.MethodDescription
 
Field Summary
 
Fields inherited from class de.uni_paderborn.fujaba.codegen.OOGenStrategyHandler
AT_POST_VARIABLE, COLLAB_STAT_BEGIN, COLLAB_STAT_END, FIND_LOWER_BOUND_ELSE_CLAUSE, FIND_LOWER_BOUND_ELSE_IF_CLAUSE, FIND_LOWER_BOUND_IF_CLAUSE, I_MULTILINK_SEARCH_NORM_BOTTOM, I_MULTILINK_SEARCH_NORM_TOP, I_MULTILINK_SEARCH_OPTIONAL_BOTTOM, I_MULTILINK_SEARCH_OPTIONAL_TOP, I_MULTILINK_SEARCH_SET, ISOMORPHIC_BINDING, ISOMORPHIC_BINDING_BODY, ISOMORPHIC_BINDING_SET, LINK_CHECK_BETWEEN_SETS, LINK_CHECK_TO_MANY, LINK_CHECK_TO_ONE, LINK_CHECK_TO_SET, LINK_CREATE, LINK_CREATE_SET, LINK_CREATE_SET_TOP, LINK_DELETE, LINK_DELETE_SET, LINK_SEARCH_TO_MANY_BOTTOM, LINK_SEARCH_TO_MANY_TOP, LINK_SEARCH_TO_ONE, LINK_SEARCH_TO_SET_BOTTOM, LINK_SEARCH_TO_SET_TOP, MULTILINK_CHECK, MULTILINK_CHECK_FIRST, MULTILINK_CHECK_LAST, MULTILINK_INSERT_OBJECT, MULTILINK_SEARCH_BOUND_TO_UNBOUND, MULTILINK_SEARCH_FIRST, MULTILINK_SEARCH_LAST, MULTILINK_SEARCH_UNBOUND_TO_BOUND, OBJECT_CREATE, OBJECT_DELETE, PATH_EXPR_CREATE, PRECONDITION_CHECK, RETURN_STAT, STORY_DIAGRAM_BOTTOM, STORY_DIAGRAM_TOP, TYPE_CAST, UML_ATTR_EXPR_PAIR
 
Constructor Summary
UMLRoleOOHandler()
          Default Constructor
 
Method Summary
 void appendStrategy(UMLRoleOOHandlerStrategy strategy)
          No comment provided by developer, please add a comment to improve documentation.
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  FAttr createAccessorDescriptions(FElement element, java.util.Set accessMethods)
          No comment provided by developer, please add a comment to improve documentation.
 UMLRoleOOHandlerStrategy findResponsible(FRole umlRole)
          No comment provided by developer, please add a comment to improve documentation.
protected  void generateAttr(FRole umlRole, FRole partnerRole, FAttr attr)
           
 OOGenToken generateSourceCode(FElement incr, OOGenToken prevToken, java.lang.Object[] param)
          No comment provided by developer, please add a comment to improve documentation.
static java.lang.String getAssocTemplateName()
          Get the assocTemplateName attribute of the UMLRoleOOHandler class
static java.lang.String getReferenceTemplateName()
          Get the referenceTemplateName attribute of the UMLRoleOOHandler class
 UMLRoleOOHandlerStrategy getStrategyChain()
          Get the strategyChain attribute of the UMLRoleOOHandler object
 FClass getTarget(FElement element, FAttr attr)
          Get the target attribute of the UMLRoleOOHandler object
protected  java.lang.String getTemplateFileName(FElement element)
          Get the templateFileName attribute of the UMLRoleOOHandler object
 boolean isResponsible(FElement incr)
          Get the responsible attribute of the FAttrExprPairOOHandler object
 void removeOldAccessors(FElement element)
          No comment provided by developer, please add a comment to improve documentation.
protected  boolean setStrategyChain(UMLRoleOOHandlerStrategy value)
          Sets the strategyChain attribute of the UMLRoleOOHandler object
 java.lang.String toString()
           
 
Methods inherited from class de.uni_paderborn.fujaba.codegen.AccessorOOHandler
addToGeneratedIncrs, addToGlobalTemplateParameterListeners, addToTemplateBlockNameListeners, addToTemplateParameterListeners, appendParameter, appendPostHook, appendPreHook, createTemplateCode, generateAccessors, generateAttrCode, generateMethod, getTemplateBlockName, hasInGeneratedIncrs, iteratorOfGlobalTemplateParameterListeners, needToken, prependParameter, prependPostHook, prependPreHook, removeFromGlobalTemplateParameterListeners, removeFromTemplateBlockNameListeners, removeFromTemplateParameterListeners, removeGeneratedIncrs, removeOldMethod
 
Methods inherited from class de.uni_paderborn.fujaba.codegen.CodeGenStrategyHandler
appendOOStatement, appendOOStatement, appendOOStatement, generate, generate, generate, generate, generateCode, generateSourceCode, getChainMaster, getClientOfChain, getPrevHandler, getSuccessor, incrNeedsToken, isContinueChain, isResponsible, setChainMaster, setContinueChain, setPrevHandler, setSuccessor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UMLRoleOOHandler

public UMLRoleOOHandler()
Default Constructor

Method Detail

isResponsible

public boolean isResponsible(FElement incr)
Get the responsible attribute of the FAttrExprPairOOHandler object

Overrides:
isResponsible in class CodeGenStrategyHandler
Parameters:
incr - No description provided
Returns:
The responsible value

generateSourceCode

public OOGenToken generateSourceCode(FElement incr,
                                     OOGenToken prevToken,
                                     java.lang.Object[] param)
No comment provided by developer, please add a comment to improve documentation.

Overrides:
generateSourceCode in class AccessorOOHandler
Parameters:
incr - No description provided
prevToken - No description provided
param - No description provided
Returns:
No description provided
See Also:
CodeGenStrategyHandler.generateSourceCode(de.uni_paderborn.fujaba.metamodel.FElement, de.uni_paderborn.fujaba.codegen.OOGenToken, java.lang.Object[])

generateAttr

protected void generateAttr(FRole umlRole,
                            FRole partnerRole,
                            FAttr attr)
Parameters:
umlRole -
partnerRole -
attr - No description provided

setStrategyChain

protected boolean setStrategyChain(UMLRoleOOHandlerStrategy value)
Sets the strategyChain attribute of the UMLRoleOOHandler object

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

getStrategyChain

public UMLRoleOOHandlerStrategy getStrategyChain()
Get the strategyChain attribute of the UMLRoleOOHandler object

Returns:
The strategyChain value

appendStrategy

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

Parameters:
strategy - No description provided

findResponsible

public 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

getAssocTemplateName

public static java.lang.String getAssocTemplateName()
Get the assocTemplateName attribute of the UMLRoleOOHandler class

Returns:
The assocTemplateName value

getReferenceTemplateName

public static java.lang.String getReferenceTemplateName()
Get the referenceTemplateName attribute of the UMLRoleOOHandler class

Returns:
The referenceTemplateName value

toString

public java.lang.String toString()
Overrides:
toString in class OOGenStrategyHandler
Returns:
short string representation of current object

getTemplateFileName

protected java.lang.String getTemplateFileName(FElement element)
Get the templateFileName attribute of the UMLRoleOOHandler object

Specified by:
getTemplateFileName in class AccessorOOHandler
Parameters:
element - No description provided
Returns:
The templateFileName value

createAccessorDescriptions

protected FAttr createAccessorDescriptions(FElement element,
                                           java.util.Set accessMethods)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
createAccessorDescriptions in class AccessorOOHandler
Parameters:
element - No description provided
accessMethods - No description provided
Returns:
No description provided

getTarget

public FClass getTarget(FElement element,
                        FAttr attr)
Get the target attribute of the UMLRoleOOHandler object

Specified by:
getTarget in class AccessorOOHandler
Parameters:
element - No description provided
attr - No description provided
Returns:
The target value

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.

Overrides:
changeTemplateParameters in class AccessorOOHandler
Parameters:
element - No description provided
attr - No description provided
blockName - No description provided
templateParameters - No description provided

removeOldAccessors

public void removeOldAccessors(FElement element)
No comment provided by developer, please add a comment to improve documentation.

Overrides:
removeOldAccessors in class AccessorOOHandler
Parameters:
element - No description provided