umbrello API Documentation

UMLComponent Class Reference

This class contains the non-graphical information required for a UML Component. Non-graphical information for a Component. More...

#include <component.h>

Inheritance diagram for UMLComponent:

UMLPackage UMLCanvasObject UMLObject List of all members.

Public Member Functions

 UMLComponent (const QString &name="", Uml::IDType id=Uml::id_None)
 Sets up a Component.
virtual ~UMLComponent ()
 Empty deconstructor.
virtual void init ()
 Initializes key variables of the class.
virtual UMLObjectclone () const
 Make a clone of this object.
void saveToXMI (QDomDocument &qDoc, QDomElement &qElement)
 Creates the UML:Component element including its operations, attributes and templates.
void setExecutable (bool executable)
 sets m_executable
bool getExecutable ()
 returns the value of m_executable

Protected Member Functions

bool load (QDomElement &element)
 Loads the UML:Component element including its operations, attributes and templates.

Detailed Description

This class contains the non-graphical information required for a UML Component. Non-graphical information for a Component.

This class inherits from UMLPackage which contains most of the information.

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

Definition at line 31 of file component.h.


Constructor & Destructor Documentation

UMLComponent::UMLComponent const QString &  name = "",
Uml::IDType  id = Uml::id_None
[explicit]
 

Sets up a Component.

Parameters:
name The name of the Concept.
id The unique id of the Concept.

Definition at line 23 of file component.cpp.

References init().

Referenced by clone().

UMLComponent::~UMLComponent  )  [virtual]
 

Empty deconstructor.

Definition at line 28 of file component.cpp.


Member Function Documentation

void UMLComponent::init  )  [virtual]
 

Initializes key variables of the class.

Reimplemented from UMLPackage.

Definition at line 31 of file component.cpp.

Referenced by UMLComponent().

UMLObject * UMLComponent::clone  )  const [virtual]
 

Make a clone of this object.

Reimplemented from UMLPackage.

Definition at line 36 of file component.cpp.

References clone(), UMLObject::copyInto(), and UMLComponent().

Referenced by clone().

void UMLComponent::saveToXMI QDomDocument &  qDoc,
QDomElement &  qElement
[virtual]
 

Creates the UML:Component element including its operations, attributes and templates.

Reimplemented from UMLPackage.

Definition at line 42 of file component.cpp.

References UMLObject::save().

void UMLComponent::setExecutable bool  executable  ) 
 

sets m_executable

Definition at line 92 of file component.cpp.

bool UMLComponent::getExecutable  ) 
 

returns the value of m_executable

Definition at line 96 of file component.cpp.

Referenced by ComponentWidget::draw().

bool UMLComponent::load QDomElement &  element  )  [protected, virtual]
 

Loads the UML:Component element including its operations, attributes and templates.

Reimplemented from UMLPackage.

Definition at line 55 of file component.cpp.

References UMLPackage::addObject(), UMLObject::loadFromXMI(), and UMLObject::setUMLPackage().


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