#include <classifiercodedocument.h>
|
| ClassifierCodeDocument (UMLClassifier *parent) |
|
virtual | ~ClassifierCodeDocument () |
|
bool | addCodeClassField (CodeClassField *add_object) |
|
bool | removeCodeClassField (CodeClassField *remove_object) |
|
CodeClassFieldList * | getCodeClassFieldList () |
|
bool | parentIsInterface () const |
|
bool | parentIsClass () const |
|
bool | hasAssociationClassFields () const |
|
bool | hasAttributeClassFields () const |
|
bool | hasObjectVectorClassFields () const |
|
bool | hasClassFields () const |
|
QList< const CodeOperation * > | getCodeOperations () const |
|
CodeClassFieldList | getSpecificClassFields (CodeClassField::ClassFieldType cfType) const |
|
CodeClassFieldList | getSpecificClassFields (CodeClassField::ClassFieldType cfType, bool isStatic) const |
|
CodeClassFieldList | getSpecificClassFields (CodeClassField::ClassFieldType cfType, Uml::Visibility::Enum visibility) const |
|
CodeClassFieldList | getSpecificClassFields (CodeClassField::ClassFieldType cfType, bool isStatic, Uml::Visibility::Enum visibility) const |
|
CodeClassField * | findCodeClassFieldFromParentID (Uml::ID::Type id, int role_id=-1) |
|
UMLClassifier * | getParentClassifier () const |
|
void | addCodeClassFieldMethods (CodeClassFieldList &list) |
|
virtual void | initCodeClassFields () |
|
virtual void | synchronize () |
|
virtual bool | addCodeOperation (CodeOperation *opBlock)=0 |
|
virtual void | updateContent ()=0 |
|
virtual void | saveToXMI (QXmlStreamWriter &writer) |
|
virtual void | loadFromXMI (QDomElement &root) |
|
| CodeDocument () |
|
virtual | ~CodeDocument () |
|
void | setFileExtension (const QString &new_var) |
|
QString | getFileExtension () const |
|
void | setFileName (const QString &new_var) |
|
QString | getFileName () const |
|
void | setPackage (UMLPackage *new_var) |
|
QString | getPackage () const |
|
virtual QString | getPath () const |
|
void | setID (const QString &new_id) |
|
QString | ID () const |
|
void | setWriteOutCode (bool new_var) |
|
bool | getWriteOutCode () const |
|
void | setHeader (CodeComment *comment) |
|
CodeComment * | getHeader () const |
|
bool | insertTextBlock (TextBlock *newBlock, TextBlock *existingBlock, bool after=true) |
|
TextBlock * | findTextBlockByTag (const QString &tag, bool descendIntoChildren=false) const |
|
virtual QString | toString () const |
|
virtual CodeBlock * | newCodeBlock () |
|
virtual HierarchicalCodeBlock * | newHierarchicalCodeBlock () |
|
virtual CodeBlockWithComments * | newCodeBlockWithComments () |
|
virtual QString | getUniqueTag (const QString &prefix=QString()) |
|
QString | cleanName (const QString &name) |
|
| CodeGenObjectWithTextBlocks (CodeDocument *parent) |
|
virtual | ~CodeGenObjectWithTextBlocks () |
|
virtual bool | addTextBlock (TextBlock *add_object) |
|
virtual bool | removeTextBlock (TextBlock *remove_object) |
|
TextBlockList * | getTextBlockList () const |
|
virtual HierarchicalCodeBlock * | getHierarchicalCodeBlock (const QString &tag, const QString &comment, int indentLevel) |
|
virtual CodeBlockWithComments * | getCodeBlockWithComments (const QString &tag, const QString &comment, int indentLevel) |
|
CodeComment * | addOrUpdateTaggedCodeComment (const QString &tag=QString(), const QString &text=QString(), int indentationLevel=0) |
|
CodeBlockWithComments * | addOrUpdateTaggedCodeBlockWithComments (const QString &tag, const QString &text, const QString &ctext, int indentLevel, bool forceUserBlockUpdate) |
|
TextBlock * | findTextBlockByTag (const QString &tag) |
|
CodeGenObjectWithTextBlocks * | findParentObjectForTaggedTextBlock (const QString &tag) |
|
◆ ClassifierCodeDocument()
ClassifierCodeDocument::ClassifierCodeDocument |
( |
UMLClassifier * | parent | ) |
|
|
explicit |
◆ ~ClassifierCodeDocument()
ClassifierCodeDocument::~ClassifierCodeDocument |
( |
| ) |
|
|
virtual |
◆ addAssociationClassField
◆ addAttributeClassField
Synchronize this document to the attributes/associations of the parent classifier. This is a slot..should only be called from a signal.
◆ addCodeClassField()
Add a CodeClassField object to the m_classfieldVector List We DON'T add methods of the code classfield here because we need to allow the codegenerator writer the liberty to organize their document as they desire.
- Returns
- boolean true if successful in adding
◆ addCodeClassFieldMethods()
A utility method that allows user to easily add classfield methods to this document.
◆ addCodeOperation()
◆ addOperation
◆ declareClassFields()
Add declaration blocks for the passed classfields.
◆ findCodeClassFieldFromParentID()
◆ findCodeClassFieldTextBlockByTag()
Find a specific textblock held by any code class field in this document by its tag.
Reimplemented from CodeDocument.
◆ getCodeClassFieldList()
Get the list of CodeClassField objects held by m_classfieldVector
- Returns
- CodeClassFieldList list of CodeClassField objects held by m_classfieldVector
◆ getCodeOperations()
Get a list of codeoperation objects held by this classifiercodedocument.
- Returns
- QList<CodeOperation>
◆ getParentClassifier()
UMLClassifier * ClassifierCodeDocument::getParentClassifier |
( |
| ) |
const |
Get the value of m_parentclassifier
- Returns
- the value of m_parentclassifier
◆ getSpecificClassFields() [1/4]
Get a list of codeclassifier objects held by this classifiercodedocument that meet the passed criteria.
◆ getSpecificClassFields() [2/4]
Get a list of codeclassifier objects held by this classifiercodedocument that meet the passed criteria.
◆ getSpecificClassFields() [3/4]
Get a list of codeclassifier objects held by this classifiercodedocument that meet the passed criteria.
◆ getSpecificClassFields() [4/4]
Get a list of codeclassifier objects held by this classifiercodedocument that meet the passed criteria.
◆ hasAssociationClassFields()
bool ClassifierCodeDocument::hasAssociationClassFields |
( |
| ) |
const |
Tell if one or more codeclassfields are derived from associations.
◆ hasAttributeClassFields()
bool ClassifierCodeDocument::hasAttributeClassFields |
( |
| ) |
const |
Tell if one or more codeclassfields are derived from attributes.
◆ hasClassFields()
bool ClassifierCodeDocument::hasClassFields |
( |
| ) |
const |
Does this object have any classfields declared?
◆ hasObjectVectorClassFields()
bool ClassifierCodeDocument::hasObjectVectorClassFields |
( |
| ) |
const |
Tell if any of the accessor classfields will be of lists of objects.
◆ init()
◆ initCodeClassFields()
void ClassifierCodeDocument::initCodeClassFields |
( |
| ) |
|
|
virtual |
Add codeclassfields to this classifiercodedocument. If a codeclassfield already exists, it is not added.
◆ loadClassFieldsFromXMI()
Load CodeClassFields from XMI element node.
◆ loadFromXMI()
Load params from the appropriate XMI element node.
Reimplemented from CodeDocument.
◆ parentIsClass()
bool ClassifierCodeDocument::parentIsClass |
( |
| ) |
const |
Return if the parent classifier is a class
◆ parentIsInterface()
bool ClassifierCodeDocument::parentIsInterface |
( |
| ) |
const |
Return if the parent classifier is an interface
◆ removeAssociationClassField
◆ removeAttributeClassField
◆ removeCodeClassField()
◆ removeOperation
◆ saveToXMI()
Save the XMI representation of this object.
Reimplemented from CodeDocument.
◆ setAttributesFromNode()
Set the class attributes of this object from the passed element node.
Reimplemented from CodeDocument.
◆ setAttributesOnNode()
Set attributes of the node that represents this class in the XMI document.
Reimplemented from CodeDocument.
◆ syncClassFields()
void ClassifierCodeDocument::syncClassFields |
( |
| ) |
|
|
protected |
Force synchronization of child classfields to their parent objects.
◆ synchronize()
void ClassifierCodeDocument::synchronize |
( |
| ) |
|
|
virtual |
Cause this classifier code document to synchronize to current policy.
Reimplemented from CodeDocument.
◆ syncNamesToParent()
void ClassifierCodeDocument::syncNamesToParent |
( |
| ) |
|
|
protected |
◆ syncToParent
void ClassifierCodeDocument::syncToParent |
( |
| ) |
|
|
slot |
◆ updateAssociationClassFields()
Using the passed list, update our inventory of CodeClassFields which are based on UMLRoles (e.g. derived from associations with other classifiers).
◆ updateContent()
◆ updateOperations()
void ClassifierCodeDocument::updateOperations |
( |
| ) |
|
|
private |
Update code operations in this document using the parent classifier.
◆ HierarchicalCodeBlock
◆ m_classFieldMap
Maps CodeClassFields to UMLObjects. Used to prevent re-adding a class field.
◆ m_classfieldVector
◆ m_parentclassifier
The documentation for this class was generated from the following files: