umbrello/umbrello
UMLTemplate Class Reference
This class holds information used by template classes, called paramaterised class in UML and a generic in Java. More...
#include <template.h>

Public Member Functions | |
| UMLTemplate (UMLObject *parent) | |
| UMLTemplate (UMLObject *parent, const QString &name, Uml::IDType id=Uml::id_None, const QString &type="class") | |
| virtual | ~UMLTemplate () |
| virtual UMLObject * | clone () const |
| virtual void | copyInto (UMLObject *lhs) const |
| virtual QString | getTypeName () const |
| bool | operator== (const UMLTemplate &rhs) |
| void | saveToXMI (QDomDocument &qDoc, QDomElement &qElement) |
| bool | showPropertiesDialog (QWidget *parent) |
| QString | toString (Uml::Signature_Type sig=Uml::st_NoSig) |
Protected Member Functions | |
| bool | load (QDomElement &element) |
Detailed Description
This class holds information used by template classes, called paramaterised class in UML and a generic in Java.
It has a type (usually just "class") and name.
Sets up template information.
- See also:
- UMLObject Bugs and comments to uml-devel@lists.sf.net or http://bugs.kde.org
Definition at line 27 of file template.h.
Constructor & Destructor Documentation
| UMLTemplate::UMLTemplate | ( | UMLObject * | parent, | |
| const QString & | name, | |||
| Uml::IDType | id = Uml::id_None, |
|||
| const QString & | type = "class" | |||
| ) |
Sets up a template.
- Parameters:
-
parent The parent of this UMLTemplate (i.e. its concept). name The name of this UMLTemplate. id The unique id given to this UMLTemplate. type The type of this UMLTemplate.
Definition at line 23 of file template.cpp.
| UMLTemplate::UMLTemplate | ( | UMLObject * | parent | ) |
Sets up a template.
- Parameters:
-
parent The parent of this UMLTemplate (i.e. its concept).
Definition at line 30 of file template.cpp.
| UMLTemplate::~UMLTemplate | ( | ) | [virtual] |
destructor
Definition at line 35 of file template.cpp.
Member Function Documentation
| UMLObject * UMLTemplate::clone | ( | ) | const [virtual] |
Make a clone of this object.
Implements UMLClassifierListItem.
Definition at line 85 of file template.cpp.
| void UMLTemplate::copyInto | ( | UMLObject * | lhs | ) | const [virtual] |
Copy the internal presentation of this object into the new object.
Reimplemented from UMLClassifierListItem.
Definition at line 77 of file template.cpp.
| QString UMLTemplate::getTypeName | ( | ) | const [virtual] |
Overrides method from UMLClassifierListItem.
Returns the type name of the UMLTemplate. If the template parameter is a class, there is no separate type object. In this case, getTypeName() returns "class".
- Returns:
- The type name of the UMLClassifierListItem.
Reimplemented from UMLClassifierListItem.
Definition at line 53 of file template.cpp.
| bool UMLTemplate::load | ( | QDomElement & | element | ) | [protected, virtual] |
Loads the <UML:TemplateParameter> XMI element.
Reimplemented from UMLObject.
Definition at line 108 of file template.cpp.
| bool UMLTemplate::operator== | ( | const UMLTemplate & | rhs | ) |
| void UMLTemplate::saveToXMI | ( | QDomDocument & | qDoc, | |
| QDomElement & | qElement | |||
| ) | [virtual] |
Writes the <UML:TemplateParameter> XMI element.
Implements UMLObject.
Definition at line 97 of file template.cpp.
| bool UMLTemplate::showPropertiesDialog | ( | QWidget * | parent | ) | [virtual] |
Display the properties configuration dialog for the template.
- Returns:
- Success status.
Implements UMLClassifierListItem.
Definition at line 118 of file template.cpp.
| QString UMLTemplate::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 from UMLClassifierListItem.
Definition at line 37 of file template.cpp.
The documentation for this class was generated from the following files:
KDE 4.4 API Reference