umbrello/umbrello
UMLTemplate Class Reference
#include <template.h>

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 28 of file template.h.
Public Member Functions | |
| UMLTemplate (UMLObject *parent, const QString &name, Uml::IDType id=Uml::id_None, const QString &type="class") | |
| UMLTemplate (UMLObject *parent) | |
| bool | operator== (const UMLTemplate &rhs) |
| virtual void | copyInto (UMLObject *lhs) const |
| virtual UMLObject * | clone () const |
| virtual | ~UMLTemplate () |
| QString | toString (Uml::Signature_Type sig=Uml::st_NoSig) |
| virtual QString | getTypeName () |
| bool | showPropertiesDialog (QWidget *parent) |
| void | saveToXMI (QDomDocument &qDoc, QDomElement &qElement) |
Protected Member Functions | |
| bool | load (QDomElement &element) |
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] |
Member Function Documentation
| bool UMLTemplate::operator== | ( | const UMLTemplate & | rhs | ) |
| void UMLTemplate::copyInto | ( | UMLObject * | lhs | ) | const [virtual] |
Copy the internal presentation of this object into the new object.
Reimplemented from UMLClassifierListItem.
Definition at line 64 of file template.cpp.
| UMLObject * UMLTemplate::clone | ( | ) | const [virtual] |
Make a clone of this object.
Implements UMLClassifierListItem.
Definition at line 69 of file template.cpp.
| QString UMLTemplate::toString | ( | Uml::Signature_Type | sig = Uml::st_NoSig |
) | [virtual] |
Returns a string representation of the UMLTemplate.
- Parameters:
-
sig Currently unused.
- Returns:
- Returns a string representation of the UMLTemplate.
Reimplemented from UMLClassifierListItem.
Definition at line 37 of file template.cpp.
| QString UMLTemplate::getTypeName | ( | ) | [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.
Definition at line 45 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 91 of file template.cpp.
| void UMLTemplate::saveToXMI | ( | QDomDocument & | qDoc, | |
| QDomElement & | qElement | |||
| ) | [virtual] |
Writes the <UML:TemplateParameter> XMI element.
Implements UMLObject.
Definition at line 78 of file template.cpp.
| bool UMLTemplate::load | ( | QDomElement & | element | ) | [protected, virtual] |
Loads the <UML:TemplateParameter> XMI element.
Reimplemented from UMLObject.
Definition at line 86 of file template.cpp.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference