CodeClassField Class Reference
class CodeClassField a special type of parameter.. More...
#include <codeclassfield.h>
Inheritance diagram for CodeClassField:

Public Types | |
| enum | ClassFieldType { Attribute, PlainAssociation, Self, Aggregation, Composition, Unknown_Assoc } |
Signals | |
| void | modified () |
Public Member Functions | |
| CodeClassField (ClassifierCodeDocument *parentDoc, UMLAttribute *attrib) | |
| Constructors. | |
| CodeClassField (ClassifierCodeDocument *parentDoc, UMLRole *role) | |
| void | finishInitialization () |
| Finish off initializations of the object. | |
| virtual | ~CodeClassField () |
| Empty Destructor. | |
| QString | getTypeName () |
| Get the value of m_dialog. | |
| CodeClassFieldDeclarationBlock * | getDeclarationCodeBlock () |
| return the declaration statement for this class field object. | |
| CodeAccessorMethodList | getMethodList () |
| Get the list of Method objects held by m_methodVector. | |
| 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 identifier. | |
| bool | fieldIsSingleValue () |
| Determine whether the parent object in this classfield indicates that it is a single variable or a List (Vector). | |
| ClassFieldType | getClassFieldType () |
| Get the type of classfield this is. | |
| bool | parentIsAttribute () |
| Get the value of m_isAbstract. | |
| QString | getListObjectType () |
| bool | getWriteOutMethods () |
| determine if we will *allow* methods to be viewable. | |
| void | setWriteOutMethods (bool val) |
| determine if we will *allow* methods to be viewable. | |
| int | minimumListOccurances () |
| Find the minimum number of things that can occur in an association If mistakenly called on attribute CF's the default value of is "0" is returned. | |
| int | maximumListOccurances () |
| Find the maximum number of things that can occur in an association If mistakenly called on attribute CF's the default value of is "1" is returned. | |
| virtual void | saveToXMI (QDomDocument &doc, QDomElement &root) |
| Save the XMI representation of this object. | |
| virtual void | loadFromXMI (QDomElement &root) |
| load params from the appropriate XMI element node. | |
| virtual void | synchronize () |
| Force the syncronization of the content (methods and declarations) of this class field. | |
Protected Member Functions | |
| void | setParentUMLObject (UMLObject *obj) |
| Set the parent UMLobject appropriately. | |
| QString | cleanName (const QString &name) |
| a little utility method to make life easier for code document programmers | |
| QString | fixInitialStringDeclValue (QString value, const QString &type) |
| another utility method to make life easier for code document programmers this one fixes the initial declared value of string attributes so that if its empty or lacking quotations, it comes out as "" | |
| void | setListClassName (const QString &className) |
| bool | addMethod (CodeAccessorMethod *add) |
| Add a Method object to the m_methodVector List. | |
| QString | getUMLObjectName (UMLObject *obj) |
| Get the value of m_dialog. | |
| bool | removeMethod (CodeAccessorMethod *remove) |
| Remove a Method object from m_methodVector List. | |
| void | updateContent () |
Detailed Description
class CodeClassField a special type of parameter..occurs on class declarations.
Definition at line 40 of file codeclassfield.h.
Constructor & Destructor Documentation
|
||||||||||||
|
Constructors.
Definition at line 44 of file codeclassfield.cpp. References setParentUMLObject(). |
|
|
Empty Destructor.
Definition at line 53 of file codeclassfield.cpp. References CodeClassFieldDeclarationBlock::forceRelease(), CodeParameter::getParentDocument(), and CodeGenObjectWithTextBlocks::removeTextBlock(). |
Member Function Documentation
|
|
Finish off initializations of the object. This is necessary as a separate method because we cannot call virtual methods that are reimplemented in a language specific class during our own construction (the own object is not finished being constructed and therefore the C++ dispatch mechanism does not yet work as expected.) Definition at line 607 of file codeclassfield.cpp. References CodeParameter::getParentDocument(), CodeParameter::getParentObject(), and CodeGenFactory::newDeclarationCodeBlock(). Referenced by CodeGenFactory::newCodeClassField(). |
|
|
Get the value of m_dialog.
Reimplemented from CodeParameter. Definition at line 104 of file codeclassfield.cpp. References fieldIsSingleValue(), UMLObject::getName(), UMLRole::getObject(), CodeParameter::getParentObject(), UMLClassifierListItem::getTypeName(), getUMLObjectName(), and parentIsAttribute(). |
|
|
return the declaration statement for this class field object.
Definition at line 223 of file codeclassfield.cpp. |
|
|
Get the list of Method objects held by m_methodVector.
Definition at line 200 of file codeclassfield.cpp. |
|
||||||||||||
|
Utility method to allow finding particular accessor method of this code class field by its type identifier.
Definition at line 389 of file codeclassfield.cpp. References UMLRole::getRole(). Referenced by addMethod(). |
|
|
Determine whether the parent object in this classfield indicates that it is a single variable or a List (Vector). One day this will be done correctly with special multiplicity object. Definition at line 574 of file codeclassfield.cpp. References UMLRole::getMultiplicity(), CodeParameter::getParentObject(), and parentIsAttribute(). Referenced by getTypeName(). |
|
|
Get the type of classfield this is.
Definition at line 144 of file codeclassfield.cpp. Referenced by ClassifierCodeDocument::getSpecificClassFields(), and ClassifierCodeDocument::hasObjectVectorClassFields(). |
|
|
Get the value of m_isAbstract.
Definition at line 136 of file codeclassfield.cpp. Referenced by fieldIsSingleValue(), getTypeName(), maximumListOccurances(), and minimumListOccurances(). |
|
|
determine if we will *allow* methods to be viewable. this flag is often used to toggle autogeneration of accessor methods in the code class field. Definition at line 208 of file codeclassfield.cpp. |
|
|
determine if we will *allow* methods to be viewable. this flag is often used to toggle autogeneration of accessor methods in the code class field. Definition at line 213 of file codeclassfield.cpp. Referenced by CPPHeaderCodeDocument::updateContent(). |
|
|
Find the minimum number of things that can occur in an association If mistakenly called on attribute CF's the default value of is "0" is returned. Similarly, if the association (role) CF doesn't have a multiplicty 0 is returned. Definition at line 325 of file codeclassfield.cpp. References UMLRole::getMultiplicity(), CodeParameter::getParentObject(), and parentIsAttribute(). |
|
|
Find the maximum number of things that can occur in an association If mistakenly called on attribute CF's the default value of is "1" is returned. If the association (role) CF doesn't have a multiplicty or has a "*" specified then '-1' (unbounded) is returned. Definition at line 342 of file codeclassfield.cpp. References UMLRole::getMultiplicity(), CodeParameter::getParentObject(), and parentIsAttribute(). |
|
||||||||||||
|
Save the XMI representation of this object.
Definition at line 317 of file codeclassfield.cpp. References CodeParameter::setAttributesOnNode(). Referenced by ClassifierCodeDocument::setAttributesOnNode(). |
|
|
load params from the appropriate XMI element node.
Definition at line 234 of file codeclassfield.cpp. References CodeParameter::setAttributesFromNode(). Referenced by ClassifierCodeDocument::loadClassFieldsFromXMI(). |
|
|
Force the syncronization of the content (methods and declarations) of this class field.
Definition at line 378 of file codeclassfield.cpp. References CodeClassFieldDeclarationBlock::syncToParent(), and ClassifierCodeDocument::syncToParent(). |
|
|
Set the parent UMLobject appropriately.
Definition at line 82 of file codeclassfield.cpp. References UMLAssociation::getAssocType(), and UMLRole::getParentAssociation(). Referenced by CodeClassField(). |
|
|
a little utility method to make life easier for code document programmers
Definition at line 362 of file codeclassfield.cpp. References CodeDocument::cleanName(), and CodeParameter::getParentDocument(). |
|
||||||||||||
|
another utility method to make life easier for code document programmers this one fixes the initial declared value of string attributes so that if its empty or lacking quotations, it comes out as ""
Definition at line 366 of file codeclassfield.cpp. |
|
|
Add a Method object to the m_methodVector List.
Definition at line 167 of file codeclassfield.cpp. References findMethodByType(). |
|
|
Get the value of m_dialog.
Definition at line 159 of file codeclassfield.cpp. References UMLObject::getName(). Referenced by getTypeName(). |
|
|
Remove a Method object from m_methodVector List.
Definition at line 188 of file codeclassfield.cpp. References CodeParameter::getParentDocument(), and CodeGenObjectWithTextBlocks::removeTextBlock(). |
The documentation for this class was generated from the following files:
