• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • kdesdk
  • Sitemap
  • Contact Us
 

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>

Inheritance diagram for UMLTemplate:
Inheritance graph
[legend]

List of all members.

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.

Author:
Jonathan Riddell
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  ) 

Overloaded '==' operator.

Reimplemented from UMLObject.

Definition at line 60 of file template.cpp.

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:
  • template.h
  • template.cpp

umbrello/umbrello

Skip menu "umbrello/umbrello"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdesdk

Skip menu "kdesdk"
  • kapptemplate
  • kate
  •     kate
  • kbugbuster
  • kcachegrind
  • kompare
  • lokalize
  • umbrello
  •   umbrello
Generated for kdesdk by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal