#include <codeclassfield.h>
class CodeClassField a special type of parameter.. occurs on class declarations.
◆ ClassFieldType
Enumerator |
---|
Attribute | |
PlainAssociation | |
Self | |
Aggregation | |
Composition | |
Unknown_Assoc | |
◆ CodeClassField() [1/2]
◆ CodeClassField() [2/2]
◆ ~CodeClassField()
CodeClassField::~CodeClassField |
( |
| ) |
|
|
virtual |
◆ addMethod()
Add a Method object to the m_methodVector List.
◆ cleanName()
QString CodeClassField::cleanName |
( |
const QString & |
name | ) |
|
|
protected |
A little utility method to make life easier for code document programmers
◆ fieldIsSingleValue()
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.
◆ findMethodByType()
Utility method to allow finding particular accessor method of this code class field by its type identifier.
◆ finishInitialization()
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.)
◆ fixInitialStringDeclValue()
QString CodeClassField::fixInitialStringDeclValue |
( |
const QString & |
val, |
|
|
const QString & |
type |
|
) |
| |
|
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 ""
◆ getClassFieldType()
Get the type of classfield this is.
◆ getDeclarationCodeBlock()
Return the declaration statement for this class field object. will be empty until this (abstract) class is inherited in elsewhere.
◆ getListObjectType()
QString CodeClassField::getListObjectType |
( |
| ) |
|
◆ getMethodList()
Get the list of Method objects held by m_methodVector.
- Returns
- QPtrList<CodeMethodBlock *> list of Method objects held by m_methodVector
◆ getTypeName()
QString CodeClassField::getTypeName |
( |
| ) |
|
|
virtual |
◆ getUMLObjectName()
QString CodeClassField::getUMLObjectName |
( |
UMLObject * |
obj | ) |
|
|
protected |
◆ getWriteOutMethods()
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.
◆ initAccessorMethods()
void CodeClassField::initAccessorMethods |
( |
| ) |
|
|
private |
◆ initFields()
void CodeClassField::initFields |
( |
bool |
inConstructor = false | ) |
|
|
private |
◆ loadFromXMI()
void CodeClassField::loadFromXMI |
( |
QDomElement & |
root | ) |
|
|
virtual |
Load params from the appropriate XMI element node.
◆ maximumListOccurances()
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 multiplicity or has a "*" specified then '-1' (unbounded) is returned.
◆ minimumListOccurances()
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 multiplicity 0 is returned.
◆ modified
void CodeClassField::modified |
( |
| ) |
|
|
signal |
◆ parentIsAttribute()
bool CodeClassField::parentIsAttribute |
( |
| ) |
const |
Get the value of m_isAbstract.
- Returns
- the value of m_isAbstract
◆ removeMethod()
Remove a Method object from m_methodVector List.
◆ saveToXMI()
void CodeClassField::saveToXMI |
( |
QXmlStreamWriter & |
writer | ) |
|
|
virtual |
Save the XMI representation of this object.
◆ setAttributesFromNode()
void CodeClassField::setAttributesFromNode |
( |
QDomElement & |
root | ) |
|
|
privatevirtual |
Set the class attributes of this object from the passed element node.
Reimplemented from CodeParameter.
◆ setAttributesOnNode()
void CodeClassField::setAttributesOnNode |
( |
QXmlStreamWriter & |
writer | ) |
|
|
privatevirtual |
Set attributes of the node that represents this class in the XMI document.
Reimplemented from CodeParameter.
◆ setListClassName()
void CodeClassField::setListClassName |
( |
const QString & |
className | ) |
|
|
protected |
◆ setParentUMLObject()
void CodeClassField::setParentUMLObject |
( |
UMLObject * |
obj | ) |
|
|
protected |
Set the parent UMLobject appropriately.
◆ setWriteOutMethods()
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.
◆ synchronize()
void CodeClassField::synchronize |
( |
| ) |
|
|
virtual |
Force the synchronization of the content (methods and declarations) of this class field.
◆ updateContent()
void CodeClassField::updateContent |
( |
| ) |
|
|
virtual |
Updates the status of the accessor methods as to whether or not they should be written out.
Implements CodeParameter.
◆ m_classFieldType
◆ m_declCodeBlock
◆ m_listClassName
QString CodeClassField::m_listClassName |
|
private |
◆ m_methodVector
◆ m_parentIsAttribute
bool CodeClassField::m_parentIsAttribute |
|
private |
◆ m_writeOutMethods
bool CodeClassField::m_writeOutMethods |
|
private |
This flag tells if we want the methods to have the possibility of being written out. IF the value is false, then all methods are never written out.
The documentation for this class was generated from the following files: