umbrello/umbrello
#include <codeclassfield.h>
Public Types | |
enum | ClassFieldType { Attribute, PlainAssociation, Self, Aggregation, Composition, Unknown_Assoc } |
Signals | |
void | modified () |
Protected Member Functions | |
bool | addMethod (CodeAccessorMethod *add) |
QString | cleanName (const QString &name) |
QString | fixInitialStringDeclValue (const QString &val, const QString &type) |
QString | getUMLObjectName (UMLObject *obj) |
bool | removeMethod (CodeAccessorMethod *remove) |
void | setListClassName (const QString &className) |
void | setParentUMLObject (UMLObject *obj) |
Additional Inherited Members | |
Public Slots inherited from CodeParameter | |
void | syncToParent () |
Detailed Description
class CodeClassField a special type of parameter.
. occurs on class declarations.
Definition at line 29 of file codeclassfield.h.
Member Enumeration Documentation
Enumerator | |
---|---|
Attribute | |
PlainAssociation | |
Self | |
Aggregation | |
Composition | |
Unknown_Assoc |
Definition at line 34 of file codeclassfield.h.
Constructor & Destructor Documentation
CodeClassField::CodeClassField | ( | ClassifierCodeDocument * | parentDoc, |
UMLAttribute * | attrib | ||
) |
Constructor.
Definition at line 42 of file codeclassfield.cpp.
CodeClassField::CodeClassField | ( | ClassifierCodeDocument * | parentDoc, |
UMLRole * | role | ||
) |
Constructor.
Definition at line 32 of file codeclassfield.cpp.
|
virtual |
Empty Destructor.
Definition at line 52 of file codeclassfield.cpp.
Member Function Documentation
|
protected |
Add a Method object to the m_methodVector List.
Definition at line 156 of file codeclassfield.cpp.
|
protected |
A little utility method to make life easier for code document programmers.
Definition at line 373 of file codeclassfield.cpp.
bool CodeClassField::fieldIsSingleValue | ( | ) |
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 604 of file codeclassfield.cpp.
CodeAccessorMethod * CodeClassField::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.
Definition at line 414 of file codeclassfield.cpp.
void CodeClassField::finishInitialization | ( | ) |
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 647 of file codeclassfield.cpp.
|
protected |
Another utility method to make life easier for code document programmers this one fixes the initial declared value of string attributes so that if it is empty or lacking quotations, it comes out as "".
Definition at line 383 of file codeclassfield.cpp.
CodeClassField::ClassFieldType CodeClassField::getClassFieldType | ( | ) | const |
Get the type of classfield this is.
Definition at line 135 of file codeclassfield.cpp.
CodeClassFieldDeclarationBlock * CodeClassField::getDeclarationCodeBlock | ( | ) |
Return the declaration statement for this class field object.
will be empty until this (abstract) class is inherited in elsewhere.
Definition at line 220 of file codeclassfield.cpp.
QString CodeClassField::getListObjectType | ( | ) |
Definition at line 112 of file codeclassfield.cpp.
CodeAccessorMethodList CodeClassField::getMethodList | ( | ) | const |
Get the list of Method objects held by m_methodVector.
- Returns
- QPtrList<CodeMethodBlock *> list of Method objects held by m_methodVector
Definition at line 190 of file codeclassfield.cpp.
|
virtual |
Get the value of m_dialog.
- Returns
- the value of m_dialog
Reimplemented from CodeParameter.
Reimplemented in RubyCodeClassField, DCodeClassField, and JavaCodeClassField.
Definition at line 94 of file codeclassfield.cpp.
|
protected |
Definition at line 148 of file codeclassfield.cpp.
bool CodeClassField::getWriteOutMethods | ( | ) | const |
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 200 of file codeclassfield.cpp.
|
virtual |
Load params from the appropriate XMI element node.
Definition at line 228 of file codeclassfield.cpp.
int CodeClassField::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.
If the association (role) CF doesn't have a multiplicty or has a "*" specified then '-1' (unbounded) is returned.
Definition at line 349 of file codeclassfield.cpp.
int CodeClassField::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.
Similarly, if the association (role) CF doesn't have a multiplicty 0 is returned.
Definition at line 325 of file codeclassfield.cpp.
|
signal |
bool CodeClassField::parentIsAttribute | ( | ) | const |
Get the value of m_isAbstract.
- Returns
- the value of m_isAbstract
Definition at line 126 of file codeclassfield.cpp.
|
protected |
Remove a Method object from m_methodVector List.
Definition at line 177 of file codeclassfield.cpp.
|
virtual |
Save the XMI representation of this object.
Definition at line 310 of file codeclassfield.cpp.
|
protected |
|
protected |
Set the parent UMLobject appropriately.
Definition at line 74 of file codeclassfield.cpp.
void CodeClassField::setWriteOutMethods | ( | bool | val | ) |
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 210 of file codeclassfield.cpp.
|
virtual |
Force the synchronization of the content (methods and declarations) of this class field.
Definition at line 400 of file codeclassfield.cpp.
|
virtual |
Updates the status of the accessor methods as to whether or not they should be written out.
Implements CodeParameter.
Definition at line 506 of file codeclassfield.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:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.