umbrello/umbrello
#include <javaclassifiercodedocument.h>
Protected Member Functions | |
void | addOrUpdateCodeClassFieldMethodsInCodeBlock (CodeClassFieldList &list, JavaClassDeclarationBlock *codeBlock) |
bool | forceDoc () |
virtual void | loadChildTextBlocksFromNode (QDomElement &root) |
void | resetTextBlocks () |
Protected Member Functions inherited from ClassifierCodeDocument | |
void | declareClassFields (CodeClassFieldList &list, CodeGenObjectWithTextBlocks *parent) |
TextBlock * | findCodeClassFieldTextBlockByTag (const QString &tag) |
void | loadClassFieldsFromXMI (QDomElement &childElem) |
virtual void | setAttributesFromNode (QDomElement &element) |
virtual void | setAttributesOnNode (QDomDocument &doc, QDomElement &blockElement) |
void | syncClassFields () |
void | syncNamesToParent () |
Protected Member Functions inherited from CodeDocument | |
void | addChildTagToMap (const QString &tag, TextBlock *tb) |
void | removeChildTagFromMap (const QString &tag) |
void | updateHeader () |
Protected Member Functions inherited from CodeGenObjectWithTextBlocks | |
void | setAttributesFromObject (CodeGenObjectWithTextBlocks *obj) |
Additional Inherited Members | |
Public Slots inherited from ClassifierCodeDocument | |
void | addAssociationClassField (UMLAssociation *assoc, bool syncToParentIfAdded=true) |
void | addAttributeClassField (UMLClassifierListItem *at, bool syncToParentIfAdded=true) |
void | addOperation (UMLClassifierListItem *obj) |
void | removeAssociationClassField (UMLAssociation *assoc) |
void | removeAttributeClassField (UMLClassifierListItem *at) |
void | removeOperation (UMLClassifierListItem *obj) |
void | syncToParent () |
Protected Attributes inherited from CodeGenObjectWithTextBlocks | |
QMap< QString, TextBlock * > | m_textBlockTagMap |
TextBlockList | m_textblockVector |
Detailed Description
class JavaClassifierCodeDocument A Java UMLClassifier Code Document.
Definition at line 32 of file javaclassifiercodedocument.h.
Constructor & Destructor Documentation
|
explicit |
Constructor.
We carve the Java document up into sections as follows:
- header
- package declaration
- import statements
- class declaration
- guts of the class (e.g. field decl, accessor methods, operations, dependant classes)
Definition at line 38 of file javaclassifiercodedocument.cpp.
|
virtual |
Empty Destructor.
Definition at line 44 of file javaclassifiercodedocument.cpp.
Member Function Documentation
|
virtual |
Add a code operation to this java classifier code document.
- Returns
- bool which is true IF the code operation was added successfully
- Parameters
-
op
Implements ClassifierCodeDocument.
Definition at line 117 of file javaclassifiercodedocument.cpp.
|
protected |
|
protected |
Definition at line 66 of file javaclassifiercodedocument.cpp.
QString JavaClassifierCodeDocument::getJavaClassName | ( | const QString & | name | ) |
Definition at line 90 of file javaclassifiercodedocument.cpp.
JavaCodeGenerationPolicy * JavaClassifierCodeDocument::getJavaPolicy | ( | ) |
Get the dialog widget which allows user interaction with the object parameters.
- Returns
- CodeDocumentDialog
Definition at line 49 of file javaclassifiercodedocument.cpp.
|
virtual |
Get the value of the path to this code document.
- Returns
- the value of m_pathName
Reimplemented from CodeDocument.
Definition at line 72 of file javaclassifiercodedocument.cpp.
|
protectedvirtual |
Need to overwrite this for java since we need to pick up the java class declaration block.
Reimplemented from CodeGenObjectWithTextBlocks.
Definition at line 130 of file javaclassifiercodedocument.cpp.
|
protectedvirtual |
Reset/clear our inventory of textblocks in this document.
Need to overload method to be able to clear the childTextBlockMap.
Reimplemented from CodeDocument.
Definition at line 278 of file javaclassifiercodedocument.cpp.
|
virtual |
Update the content of this code document.
This is where you should lay out your code document structure of textblocks in the inheriting class, should it have any text in it. Vanilla code documents don't have much to do.. override this with a different version for your own documents.
Implements ClassifierCodeDocument.
Definition at line 296 of file javaclassifiercodedocument.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.