umbrello/umbrello
#include <classifierlistitem.h>
Public Member Functions | |
UMLClassifierListItem (UMLObject *parent, const QString &name, Uml::ID::Type id=Uml::ID::None) | |
UMLClassifierListItem (UMLObject *parent) | |
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::SignatureType::Enum sig=Uml::SignatureType::NoSig) |
Public Member Functions inherited from UMLObject | |
UMLObject (UMLObject *parent, const QString &name, Uml::ID::Type id=Uml::ID::None) | |
UMLObject (UMLObject *parent) | |
UMLObject (const QString &name=QString(), Uml::ID::Type id=Uml::ID::None) | |
virtual | ~UMLObject () |
virtual bool | acceptAssociationType (Uml::AssociationType::Enum) |
ObjectType | baseType () const |
QLatin1String | baseTypeStr () const |
QString | doc () const |
virtual QString | fullyQualifiedName (const QString &separator=QString(), bool includeRoot=false) const |
bool | hasDoc () const |
virtual Uml::ID::Type | id () const |
bool | isAbstract () const |
bool | isStatic () const |
virtual bool | loadFromXMI (QDomElement &element) |
bool | loadStereotype (QDomElement &element) |
QString | name () const |
bool | operator== (const UMLObject &rhs) const |
QString | package (const QString &separator=QString(), bool includeRoot=false) |
UMLPackageList | packages (bool includeRoot=false) const |
virtual bool | resolveRef () |
QDomElement | save (const QString &tag, QDomDocument &qDoc) |
virtual void | saveToXMI (QDomDocument &qDoc, QDomElement &qElement)=0 |
QString | secondaryFallback () const |
QString | secondaryId () const |
void | setAbstract (bool bAbstract) |
virtual void | setBaseType (ObjectType ot) |
void | setDoc (const QString &d) |
virtual void | setID (Uml::ID::Type NewID) |
void | setInPaste (bool bInPaste=true) |
virtual void | setName (const QString &strName) |
void | setNameCmd (const QString &strName) |
void | setPackage (const QString &_name) |
void | setSecondaryFallback (const QString &id) |
void | setSecondaryId (const QString &id) |
void | setStatic (bool bStatic) |
void | setStereotype (const QString &_name) |
void | setStereotypeCmd (const QString &_name) |
bool | setUMLPackage (UMLPackage *pPkg) |
void | setUMLStereotype (UMLStereotype *stereo) |
void | setVisibility (Uml::Visibility::Enum visibility) |
void | setVisibilityCmd (Uml::Visibility::Enum visibility) |
virtual bool | showPropertiesPagedDialog (int page=0, bool assoc=false) |
QString | stereotype (bool includeAdornments=false) const |
UMLPackage * | umlPackage () |
const UMLStereotype * | umlStereotype () |
Uml::Visibility::Enum | visibility () const |
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 29 of file classifierlistitem.h.
Constructor & Destructor Documentation
UMLClassifierListItem::UMLClassifierListItem | ( | UMLObject * | parent, |
const QString & | name, | ||
Uml::ID::Type | id = Uml::ID::None |
||
) |
Constructor.
- 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 37 of file classifierlistitem.cpp.
|
explicit |
Constructor.
- 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 57 of file classifierlistitem.cpp.
|
virtual |
Member Function Documentation
|
pure virtual |
The abstract method UMLObject::clone() must be implemented by the classes inheriting from UMLClassifierListItem.
Implements UMLObject.
Implemented in UMLForeignKeyConstraint, UMLEntityAttribute, UMLAttribute, UMLEntityConstraint, UMLUniqueConstraint, UMLCheckConstraint, UMLOperation, UMLTemplate, and UMLEnumLiteral.
|
virtual |
Copy the internal presentation of this object into the new object.
Reimplemented from UMLObject.
Reimplemented in UMLForeignKeyConstraint, UMLEntityAttribute, UMLAttribute, UMLEntityConstraint, UMLUniqueConstraint, UMLCheckConstraint, UMLOperation, UMLTemplate, and UMLEnumLiteral.
Definition at line 77 of file classifierlistitem.cpp.
UMLClassifier * UMLClassifierListItem::getType | ( | ) | const |
Returns the type of the UMLClassifierListItem.
- Returns
- The type of the UMLClassifierListItem.
Definition at line 100 of file classifierlistitem.cpp.
|
virtual |
Returns the type name of the UMLClassifierListItem.
- Returns
- The type name of the UMLClassifierListItem.
Reimplemented in UMLTemplate.
Definition at line 110 of file classifierlistitem.cpp.
|
virtual |
Sets the type of the UMLAttribute.
- Parameters
-
type Pointer to the UMLObject of the type.
Reimplemented in UMLOperation.
Definition at line 125 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 139 of file classifierlistitem.cpp.
|
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 UMLEntityAttribute, UMLForeignKeyConstraint, UMLAttribute, UMLOperation, UMLUniqueConstraint, UMLCheckConstraint, UMLTemplate, and UMLEnumLiteral.
|
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 UMLEntityAttribute, UMLForeignKeyConstraint, UMLAttribute, UMLOperation, UMLTemplate, UMLUniqueConstraint, and UMLCheckConstraint.
Definition at line 89 of file classifierlistitem.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.