umbrello/umbrello
codeclassfield.cpp
Go to the documentation of this file.
82 if (atype == Uml::AssociationType::Association || atype == Uml::AssociationType::Association_Self)
290 CodeAccessorMethod * method = findMethodByType((CodeAccessorMethod::AccessorType) type, role_id);
294 uError()<<"Can not load code accessor method for type:"<<type<<" which does not exist in this codeclassfield. Is XMI out-dated or corrupt?";
300 uWarning()<<"ERROR: bad savefile? code classfield loadFromXMI got child element with unknown tag:"<<tag<<" ignoring node.";
414 CodeAccessorMethod * CodeClassField::findMethodByType (CodeAccessorMethod::AccessorType type, int role_id)
451 CodeAccessorMethod * method = CodeGenFactory::newCodeAccessorMethod (getParentDocument(), this, CodeAccessorMethod::GET);
461 CodeAccessorMethod * method = CodeGenFactory::newCodeAccessorMethod (getParentDocument(), this, CodeAccessorMethod::SET);
474 CodeAccessorMethod * method = CodeGenFactory::newCodeAccessorMethod (getParentDocument(), this, CodeAccessorMethod::ADD);
483 CodeAccessorMethod * method = CodeGenFactory::newCodeAccessorMethod (getParentDocument(), this, CodeAccessorMethod::REMOVE);
492 CodeAccessorMethod * method = CodeGenFactory::newCodeAccessorMethod (getParentDocument(), this, CodeAccessorMethod::LIST);
653 connect(getParentObject(), SIGNAL(modified()), this, SIGNAL(modified())); // child objects will trigger off this signal
void setType(AccessorType type)
Set the type of accessor method this is.
Definition: codeaccessormethod.cpp:72
void forceRelease()
So parent can actually release this block.
Definition: codeclassfielddeclarationblock.cpp:65
CodeClassFieldDeclarationBlock * newDeclarationCodeBlock(ClassifierCodeDocument *cd, CodeClassField *cf)
Definition: codegenfactory.cpp:363
QString multiplicity() const
Returns the multiplicity assigned to the role.
Definition: umlrole.cpp:96
Definition: codeclassfield.h:34
class ClassifierCodeDocument A CodeDocument which represents a UMLClassifier (e.g.
Definition: classifiercodedocument.h:33
virtual void saveToXMI(QDomDocument &doc, QDomElement &root)
Save the XMI representation of this object.
Definition: codeaccessormethod.cpp:110
the content was generated by code generation itself
Definition: codeblock.h:28
AccessorType getType()
Utility method to get the value of the parent object of the parent classifield.
Definition: codeaccessormethod.cpp:64
void modified()
CodeClassField(ClassifierCodeDocument *parentDoc, UMLAttribute *attrib)
Constructor.
Definition: codeclassfield.cpp:42
bool addMethod(CodeAccessorMethod *add)
Add a Method object to the m_methodVector List.
Definition: codeclassfield.cpp:156
Definition: basictypes.h:176
Definition: codeclassfield.h:34
void updateContent()
Updates the status of the accessor methods as to whether or not they should be written out...
Definition: codeclassfield.cpp:506
ContentType contentType() const
Get the value of m_contentType specifies whether the content (text) of this object was generated by t...
Definition: codeblock.cpp:54
Used to declare classifier fields (e.g.
Definition: codeclassfielddeclarationblock.h:29
ClassFieldType getClassFieldType() const
Get the type of classfield this is.
Definition: codeclassfield.cpp:135
virtual void saveToXMI(QDomDocument &doc, QDomElement &root)
Save the XMI representation of this object.
Definition: codeclassfield.cpp:310
ClassifierCodeDocument * getParentDocument()
Get the parent Code Document.
Definition: codeparameter.cpp:133
int minimumListOccurances()
Find the minimum number of things that can occur in an association If mistakenly called on attribute ...
Definition: codeclassfield.cpp:325
This class contains the non-graphic representation of an association.
Definition: association.h:32
CodeAccessorMethod * findMethodByType(CodeAccessorMethod::AccessorType type, int role_id=-1)
Utility method to allow finding particular accessor method of this code class field by its type ident...
Definition: codeclassfield.cpp:414
virtual void loadFromXMI(QDomElement &root)
Load params from the appropriate XMI element node.
Definition: codeclassfield.cpp:228
Definition: codeaccessormethod.h:32
CodeAccessorMethod * newCodeAccessorMethod(ClassifierCodeDocument *ccd, CodeClassField *cf, CodeAccessorMethod::AccessorType type)
Definition: codegenfactory.cpp:313
Definition: codeaccessormethod.h:32
Uml::AssociationType::Enum getAssocType() const
Returns the AssociationType::Enum of the UMLAssociation.
Definition: association.cpp:103
void setWriteOutText(bool write)
Set the value of m_writeOutText Whether or not to include the text of this TextBlock into a file...
Definition: textblock.cpp:131
Definition: codeclassfield.h:34
int maximumListOccurances()
Find the maximum number of things that can occur in an association If mistakenly called on attribute ...
Definition: codeclassfield.cpp:349
void setWriteOutMethods(bool val)
Determine if we will allow methods to be viewable.
Definition: codeclassfield.cpp:210
Definition: codeaccessormethod.h:20
Definition: codeaccessormethod.h:32
virtual void synchronize()
Force the synchronization of the content (methods and declarations) of this class field...
Definition: codeclassfield.cpp:400
virtual void loadFromXMI(QDomElement &root)
Load params from the appropriate XMI element node.
Definition: codeclassfielddeclarationblock.cpp:90
Definition: basictypes.h:177
QString cleanName(const QString &name)
A little utility method which calls CodeGenerator::cleanName.
Definition: codedocument.cpp:269
bool removeMethod(CodeAccessorMethod *remove)
Remove a Method object from m_methodVector List.
Definition: codeclassfield.cpp:177
virtual void saveToXMI(QDomDocument &doc, QDomElement &root)
Save the XMI representation of this object.
Definition: codeclassfielddeclarationblock.cpp:80
QString cleanName(const QString &name)
A little utility method to make life easier for code document programmers.
Definition: codeclassfield.cpp:373
QString fixInitialStringDeclValue(const QString &val, const QString &type)
Another utility method to make life easier for code document programmers this one fixes the initial d...
Definition: codeclassfield.cpp:383
virtual void setAttributesFromNode(QDomElement &element)
Set the class attributes of this object from the passed element node.
Definition: codeparameter.cpp:192
virtual void setAttributesOnNode(QDomDocument &doc, QDomElement &blockElement)
Set attributes of the node that represents this class in the XMI document.
Definition: codeparameter.cpp:166
void forceRelease()
A method so the parent code classfield can force code block to release.
Definition: codeaccessormethod.cpp:91
This class contains the non-graphic representation of an association role.
Definition: umlrole.h:24
CodeClassFieldDeclarationBlock * getDeclarationCodeBlock()
Return the declaration statement for this class field object.
Definition: codeclassfield.cpp:220
Uml::RoleType::Enum role() const
Get the 'id' of the role (NOT the parent object).
Definition: umlrole.cpp:152
bool getWriteOutMethods() const
Determine if we will allow methods to be viewable.
Definition: codeclassfield.cpp:200
QList< CodeAccessorMethod * > CodeAccessorMethodList
Definition: codeaccessormethodlist.h:17
virtual bool removeTextBlock(TextBlock *remove_object)
Remove a TextBlock object from m_textblockVector list.
Definition: codegenobjectwithtextblocks.cpp:95
Definition: codeaccessormethod.h:32
QString getUMLObjectName(UMLObject *obj)
Definition: codeclassfield.cpp:148
Uml::Changeability::Enum changeability() const
Returns the Changeablity of the role.
Definition: umlrole.cpp:86
void setParentUMLObject(UMLObject *obj)
Set the parent UMLobject appropriately.
Definition: codeclassfield.cpp:74
bool fieldIsSingleValue()
Determine whether the parent object in this classfield indicates that it is a single variable or a Li...
Definition: codeclassfield.cpp:604
CodeAccessorMethodList getMethodList() const
Get the list of Method objects held by m_methodVector.
Definition: codeclassfield.cpp:190
virtual QString getTypeName() const
Returns the type name of the UMLClassifierListItem.
Definition: classifierlistitem.cpp:110
virtual void syncToParent()
Definition: codeclassfielddeclarationblock.cpp:136
void finishInitialization()
Finish off initializations of the object.
Definition: codeclassfield.cpp:647
virtual void loadFromXMI(QDomElement &root)
Load params from the appropriate XMI element node.
Definition: codeaccessormethod.cpp:102
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:05:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:05:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.