umbrello/umbrello
UMLClassifierListItem Class Reference
Classifiers (classes, interfaces) have lists of operations, attributes, templates and others. More...
#include <classifierlistitem.h>

Public Member Functions | |
| UMLClassifierListItem (UMLObject *parent) | |
| UMLClassifierListItem (UMLObject *parent, const QString &name, Uml::IDType id=Uml::id_None) | |
| virtual | ~UMLClassifierListItem () |
| virtual UMLObject * | clone () const =0 |
| virtual void | copyInto (UMLObject *lhs) const |
| UMLClassifier * | getType () const |
| virtual QString | getTypeName () const |
| virtual void | setType (UMLObject *type) |
| void | setTypeName (const QString &type) |
| virtual bool | showPropertiesDialog (QWidget *parent)=0 |
| virtual QString | toString (Uml::Signature_Type sig=Uml::st_NoSig) |
Detailed Description
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.
A base class for classifier list items (e.g. attributes)
Definition at line 30 of file classifierlistitem.h.
Constructor & Destructor Documentation
| UMLClassifierListItem::UMLClassifierListItem | ( | UMLObject * | parent, | |
| const QString & | name, | |||
| Uml::IDType | id = Uml::id_None | |||
| ) |
Constructor.
Empty.
- Parameters:
-
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.
Definition at line 26 of file classifierlistitem.cpp.
| UMLClassifierListItem::UMLClassifierListItem | ( | UMLObject * | parent | ) |
Constructor.
Empty.
- Parameters:
-
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.
Definition at line 36 of file classifierlistitem.cpp.
| UMLClassifierListItem::~UMLClassifierListItem | ( | ) | [virtual] |
Member Function Documentation
| virtual UMLObject* UMLClassifierListItem::clone | ( | ) | const [pure virtual] |
The abstract method UMLObject::clone() must be implemented by the classes inheriting from UMLClassifierListItem.
Implements UMLObject.
Implemented in UMLAttribute, UMLCheckConstraint, UMLEntityAttribute, UMLEntityConstraint, UMLEnumLiteral, UMLForeignKeyConstraint, UMLOperation, UMLTemplate, and UMLUniqueConstraint.
| void UMLClassifierListItem::copyInto | ( | UMLObject * | lhs | ) | const [virtual] |
Copy the internal presentation of this object into the new object.
Reimplemented in UMLAttribute, UMLCheckConstraint, UMLEntityAttribute, UMLEntityConstraint, UMLEnumLiteral, UMLForeignKeyConstraint, UMLOperation, UMLTemplate, and UMLUniqueConstraint.
Definition at line 53 of file classifierlistitem.cpp.
| UMLClassifier * UMLClassifierListItem::getType | ( | ) | const |
Returns the type of the UMLClassifierListItem.
- Returns:
- The type of the UMLClassifierListItem.
Definition at line 76 of file classifierlistitem.cpp.
| QString UMLClassifierListItem::getTypeName | ( | ) | const [virtual] |
Returns the type name of the UMLClassifierListItem.
- Returns:
- The type name of the UMLClassifierListItem.
Reimplemented in UMLTemplate.
Definition at line 86 of file classifierlistitem.cpp.
| void UMLClassifierListItem::setType | ( | UMLObject * | type | ) | [virtual] |
Sets the type of the UMLAttribute.
- Parameters:
-
type Pointer to the UMLObject of the type.
Reimplemented in UMLOperation.
Definition at line 101 of file classifierlistitem.cpp.
| void UMLClassifierListItem::setTypeName | ( | const QString & | type | ) |
Sets the type name of the UMLClassifierListItem.
DEPRECATED - use setType() instead.
- Parameters:
-
type The type name of the UMLClassifierListItem.
Definition at line 115 of file classifierlistitem.cpp.
| virtual bool UMLClassifierListItem::showPropertiesDialog | ( | QWidget * | parent | ) | [pure virtual] |
Display the properties configuration dialog for the list item.
- Parameters:
-
parent The parent widget.
- Returns:
- True for success of this operation.
Implemented in UMLAttribute, UMLCheckConstraint, UMLEntityAttribute, UMLEnumLiteral, UMLForeignKeyConstraint, UMLOperation, UMLTemplate, and UMLUniqueConstraint.
| QString UMLClassifierListItem::toString | ( | Uml::Signature_Type | sig = Uml::st_NoSig |
) | [virtual] |
Returns a string representation of the list item.
- Parameters:
-
sig What type of operation string to show.
- Returns:
- The string representation of the operation.
Reimplemented in UMLAttribute, UMLCheckConstraint, UMLEntityAttribute, UMLForeignKeyConstraint, UMLOperation, UMLTemplate, and UMLUniqueConstraint.
Definition at line 65 of file classifierlistitem.cpp.
The documentation for this class was generated from the following files:
KDE 4.4 API Reference