|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.uni_paderborn.fujaba.gui.AssocCodeGenerator
This class is responsible for the completion and implementation of associations. In future this special class will be replaced by the code generation module.
Field Summary | |
private static int |
ASSOC_CARD_11
No comment provided by developer, please add a comment to improve documentation. |
private static int |
ASSOC_CARD_1N
No comment provided by developer, please add a comment to improve documentation. |
private static int |
ASSOC_CARD_N1
No comment provided by developer, please add a comment to improve documentation. |
private static int |
ASSOC_CARD_NN
No comment provided by developer, please add a comment to improve documentation. |
private static int |
ATTR_QUALIFIER
No comment provided by developer, please add a comment to improve documentation. |
private static int |
FREE_QUALIFIER
No comment provided by developer, please add a comment to improve documentation. |
private static int |
LAST_ASSOC_TYPE
No comment provided by developer, please add a comment to improve documentation. |
private static int |
NO_REPAIR_NEEDED
No comment provided by developer, please add a comment to improve documentation. |
private static int |
QUALIFIED_ASSOC
No comment provided by developer, please add a comment to improve documentation. |
private static int |
STANDARD_ASSOC
No comment provided by developer, please add a comment to improve documentation. |
private static int |
SWITCH_ASSOC
No comment provided by developer, please add a comment to improve documentation. |
private static int |
SWITCH_TO_REFERENCE
No comment provided by developer, please add a comment to improve documentation. |
private static AssocCodeGenerator |
theInstance
No comment provided by developer, please add a comment to improve documentation. |
Constructor Summary | |
private |
AssocCodeGenerator()
Constructor for class AssocCodeGenerator |
Method Summary | |
static void |
addToTemplateBlockNameListeners(TemplateBlockNameListener listener)
Deprecated. Use UMLClassOOHandler.addToTemplateBlockNameListeners instead |
private long |
analyzeAssoc(UMLAssoc assoc)
Clear the old annotation structure and check for which type of assoc we have to generate code. |
void |
completeAssoc(UMLAssoc assoc)
Complete the assoc implementation. param assoc The association which will be completed. |
static AssocCodeGenerator |
get()
No comment provided by developer, please add a comment to improve documentation. |
private int |
getAssocCard(UMLRole leftRole,
UMLRole rightRole)
Returns the type of the assoc. |
static java.lang.String |
getAssocTemplateName()
Deprecated. Use UMLClassOOHandler.getAssocTemplateName instead |
static java.lang.String |
getReferenceTemplateName()
Deprecated. Use UMLClassOOHandler.getReferenceTemplateName instead |
static java.lang.String |
getTemplateBlockName(java.lang.String blockName,
UMLClass cls,
UMLAttr attr)
Deprecated. Use UMLClassOOHandler.getTemplateBlockName instead |
static void |
removeFromTemplateBlockNameListeners(TemplateBlockNameListener listener)
Deprecated. Use UMLClassOOHandler.removeFromTemplateBlockNameListeners instead |
protected void |
repairAssoc(UMLAssoc assoc,
long repairCode)
No comment provided by developer, please add a comment to improve documentation. |
protected void |
repairQualifiedAttrAssoc(UMLAssoc assoc,
long repairCode)
Generates new code for a qualified association. |
protected void |
repairQualifiedFreeAssoc(UMLAssoc assoc,
long repairCode)
Generates new code for a qualified association. |
protected void |
repairStandardAssoc(UMLAssoc assoc)
Repairs an assoc without qualifiers. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final int NO_REPAIR_NEEDED
private static final int SWITCH_TO_REFERENCE
private static final int SWITCH_ASSOC
private static final int STANDARD_ASSOC
private static final int QUALIFIED_ASSOC
private static final int ATTR_QUALIFIER
private static final int FREE_QUALIFIER
private static final int LAST_ASSOC_TYPE
private static final int ASSOC_CARD_11
private static final int ASSOC_CARD_1N
private static final int ASSOC_CARD_N1
private static final int ASSOC_CARD_NN
private static AssocCodeGenerator theInstance
Constructor Detail |
private AssocCodeGenerator()
Method Detail |
public static AssocCodeGenerator get()
public void completeAssoc(UMLAssoc assoc)
assoc
- No description providedprivate long analyzeAssoc(UMLAssoc assoc)
assoc
- The assoc to analyze.
protected void repairAssoc(UMLAssoc assoc, long repairCode)
assoc
- No description providedrepairCode
- No description providedpublic static java.lang.String getTemplateBlockName(java.lang.String blockName, UMLClass cls, UMLAttr attr)
blockName
- No description providedcls
- No description providedattr
- No description provided
public static void addToTemplateBlockNameListeners(TemplateBlockNameListener listener)
listener
- The object added.public static void removeFromTemplateBlockNameListeners(TemplateBlockNameListener listener)
listener
- No description providedprotected void repairQualifiedAttrAssoc(UMLAssoc assoc, long repairCode)
repairCode
- Flag for additional information on the assoc.assoc
- No description providedprotected void repairQualifiedFreeAssoc(UMLAssoc assoc, long repairCode)
repairCode
- Flag for additional information on the assoc.assoc
- No description providedprotected void repairStandardAssoc(UMLAssoc assoc)
assoc
- The association to repair.private int getAssocCard(UMLRole leftRole, UMLRole rightRole)
leftRole
- Left role of the association.rightRole
- The associated partner role.
public static java.lang.String getReferenceTemplateName()
public static java.lang.String getAssocTemplateName()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |