umbrello API Documentation

UMLClassifierListItem Class Reference

Classifiers (classes, interfaces) have lists of operations, attributes, templates and others. A base class for classifier list items (e.g. attributes). More...

#include <classifierlistitem.h>

Inheritance diagram for UMLClassifierListItem:

UMLObject UMLAttribute UMLEnumLiteral UMLOperation UMLTemplate UMLEntityAttribute List of all members.

Public Member Functions

 UMLClassifierListItem (const UMLObject *parent, const QString &name, Uml::IDType id=Uml::id_None)
 Constructor.
 UMLClassifierListItem (const UMLObject *parent)
 Constructor.
virtual ~UMLClassifierListItem ()
 Destructor.
UMLClassifiergetType ()
 Returns the type of the UMLClassifierListItem.
virtual QString getTypeName ()
 Returns the type name of the UMLClassifierListItem.
void setTypeName (const QString &type)
 Sets the type name of the UMLClassifierListItem.
virtual void setType (UMLObject *type)
 Sets the type of the UMLAttribute.
virtual QString toString (Uml::Signature_Type sig=Uml::st_NoSig)
 Returns a string representation of the list item.
virtual bool showPropertiesDialog (QWidget *parent)=0
 Display the properties configuration dialog for the list item.
virtual void copyInto (UMLClassifierListItem *rhs) const
 Copy the internal presentation of this object into the new object.
virtual UMLObjectclone () const =0
 The abstract method UMLObject::clone() must be implemented by the classes inheriting from UMLClassifierListItem.

Detailed Description

Classifiers (classes, interfaces) have lists of operations, attributes, templates and others. A base class for classifier list items (e.g. attributes).

This is a base class for the items in this list. This abstraction should remove duplication of dialogs and allow for stereotypes in lists.

Author:
Jonathan Riddell Bugs and comments to uml-devel@lists.sf.net or http://bugs.kde.org

Definition at line 31 of file classifierlistitem.h.


Constructor & Destructor Documentation

UMLClassifierListItem::UMLClassifierListItem const 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.

References UMLObject::setUMLPackage().

UMLClassifierListItem::UMLClassifierListItem const 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.

References UMLObject::setUMLPackage().

UMLClassifierListItem::~UMLClassifierListItem  )  [virtual]
 

Destructor.

Empty.

Definition at line 43 of file classifierlistitem.cpp.


Member Function Documentation

UMLClassifier * UMLClassifierListItem::getType  ) 
 

Returns the type of the UMLClassifierListItem.

Returns:
The type of the UMLClassifierListItem.

Definition at line 56 of file classifierlistitem.cpp.

Referenced by UMLView::createAutoAttributeAssociations(), CodeGenerator::findObjectsRelated(), UMLAttribute::getTemplateParams(), UMLListView::moveObject(), UMLOperation::saveToXMI(), UMLOperation::toString(), and UMLAttribute::toString().

QString UMLClassifierListItem::getTypeName  )  [virtual]
 

Returns the type name of the UMLClassifierListItem.

Returns:
The type name of the UMLClassifierListItem.

Reimplemented in UMLTemplate.

Definition at line 60 of file classifierlistitem.cpp.

References UMLObject::getFullyQualifiedName(), UMLObject::getName(), and UMLObject::getUMLPackage().

Referenced by CodeParameter::getTypeName(), CodeClassField::getTypeName(), UMLOperation::operator==(), UMLOperation::saveToXMI(), UMLOperationDialog::setupDialog(), UMLEntityAttributeDialog::setupDialog(), UMLAttributeDialog::setupDialog(), UMLEntityAttribute::toString(), PascalWriter::writeClass(), IDLWriter::writeClass(), and AdaWriter::writeClass().

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.

References UMLObject::emitModified(), UMLDoc::findUMLObject(), and UMLApp::getDocument().

Referenced by UMLTemplateDialog::apply(), UMLOperationDialog::apply(), and UMLTemplate::UMLTemplate().

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.

References UMLObject::emitModified().

Referenced by UMLTemplateDialog::apply(), UMLEntityAttributeDialog::apply(), UMLAttributeDialog::apply(), UMLListView::createChildUMLObject(), UMLListViewItem::okRename(), and UMLOperation::setType().

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, UMLEntityAttribute, UMLOperation, and UMLTemplate.

Definition at line 52 of file classifierlistitem.cpp.

References UMLObject::getName().

Referenced by ClassifierListPage::slotDoubleClick(), and UMLListViewItem::updateObject().

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, UMLEntityAttribute, UMLEnumLiteral, UMLOperation, and UMLTemplate.

Referenced by ClassifierListPage::slotDoubleClick().

void UMLClassifierListItem::copyInto UMLClassifierListItem rhs  )  const [virtual]
 

Copy the internal presentation of this object into the new object.

Definition at line 46 of file classifierlistitem.cpp.

References UMLObject::copyInto().

Referenced by UMLTemplate::copyInto(), UMLOperation::copyInto(), UMLEnumLiteral::copyInto(), UMLEntityAttribute::copyInto(), and UMLAttribute::copyInto().

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, UMLEntityAttribute, UMLEnumLiteral, UMLOperation, and UMLTemplate.

Referenced by UMLClassifierListItemList::copyInto().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for umbrello Version 3.1.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Jun 26 08:08:06 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003