umbrello/umbrello
UMLClassifierListItem Class Reference
#include <classifierlistitem.h>

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 31 of file classifierlistitem.h.
Public Member Functions | |
| UMLClassifierListItem (UMLObject *parent, const QString &name, Uml::IDType id=Uml::id_None) | |
| UMLClassifierListItem (UMLObject *parent) | |
| virtual | ~UMLClassifierListItem () |
| UMLClassifier * | getType () const |
| virtual QString | getTypeName () const |
| void | setTypeName (const QString &type) |
| virtual void | setType (UMLObject *type) |
| virtual QString | toString (Uml::Signature_Type sig=Uml::st_NoSig) |
| virtual bool | showPropertiesDialog (QWidget *parent)=0 |
| virtual void | copyInto (UMLObject *lhs) const |
| virtual UMLObject * | clone () const =0 |
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 35 of file classifierlistitem.cpp.
| UMLClassifierListItem::~UMLClassifierListItem | ( | ) | [virtual] |
Member Function Documentation
| UMLClassifier * UMLClassifierListItem::getType | ( | ) | const |
Returns the type of the UMLClassifierListItem.
- Returns:
- The type of the UMLClassifierListItem.
Definition at line 56 of file classifierlistitem.cpp.
| QString UMLClassifierListItem::getTypeName | ( | ) | const [virtual] |
Returns the type name of the UMLClassifierListItem.
- Returns:
- The type name of the UMLClassifierListItem.
Definition at line 60 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 76 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 69 of file classifierlistitem.cpp.
| 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 52 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.
| void UMLClassifierListItem::copyInto | ( | UMLObject * | lhs | ) | const [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.
Definition at line 46 of file classifierlistitem.cpp.
| 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.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference