umbrello 2.31.70-88582909d
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
|
A base class for classifier list items (e.g. attributes) More...
#include <classifierlistitem.h>
A base class for classifier list items (e.g. attributes)
Classifiers (classes, interfaces) have lists of operations, attributes, templates and others. This is a base class for the items in this list. This abstraction should remove duplication of dialogs and allow for stereotypes in lists.
UMLClassifierListItem::UMLClassifierListItem | ( | UMLObject * | parent, |
const QString & | name, | ||
Uml::ID::Type | id = Uml::ID::None |
||
) |
Constructor.
parent | The parent to this operation. At first sight it would appear that the type of the parent should be UMLClassifier. However, the class UMLAttribute is also used for the parameters of operations, and in this case the UMLOperation is the parent. |
name | The name of the operation. |
id | The id of the operation. |
|
explicit |
Constructor.
parent | The parent to this operation. At first sight it would appear that the type of the parent should be UMLClassifier. However, the class UMLAttribute is also used for the parameters of operations, and in this case the UMLOperation is the parent. |
|
virtual |
Destructor. Empty.
|
pure virtual |
The abstract method UMLObject::clone() must be implemented by the classes inheriting from UMLClassifierListItem.
Reimplemented from UMLObject.
Implemented in UMLAttribute, UMLCheckConstraint, UMLEntityAttribute, UMLEnumLiteral, UMLForeignKeyConstraint, UMLOperation, UMLTemplate, UMLUniqueConstraint, and UMLEntityConstraint.
|
virtual |
Copy the internal presentation of this object into the new object.
Reimplemented from UMLObject.
Reimplemented in UMLAttribute, UMLCheckConstraint, UMLEntityAttribute, UMLEntityConstraint, UMLEnumLiteral, UMLForeignKeyConstraint, UMLOperation, UMLTemplate, and UMLUniqueConstraint.
UMLClassifier * UMLClassifierListItem::getType | ( | ) | const |
Returns the type of the UMLClassifierListItem.
|
virtual |
Returns the type name of the UMLClassifierListItem.
Reimplemented in UMLTemplate.
|
virtual |
Sets the type of the UMLAttribute.
type | Pointer to the UMLObject of the type. |
Reimplemented in UMLOperation.
void UMLClassifierListItem::setTypeName | ( | const QString & | type | ) |
Sets the type name of the UMLClassifierListItem. DEPRECATED - use setType() instead.
type | The type name of the UMLClassifierListItem. |
|
virtual |
Returns a string representation of the list item.
sig | What type of operation string to show. |
Reimplemented in UMLAttribute, UMLCheckConstraint, UMLEntityAttribute, UMLEnumLiteral, UMLForeignKeyConstraint, UMLOperation, UMLTemplate, and UMLUniqueConstraint.