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

umbrello/umbrello

UMLArtifact Class Reference

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

#include <artifact.h>

Inheritance diagram for UMLArtifact:
Inheritance graph
[legend]

List of all members.

Public Types

enum  Draw_Type { defaultDraw, file, library, table }

Public Member Functions

 UMLArtifact (const QString &name=QString(), Uml::IDType id=Uml::id_None)
virtual ~UMLArtifact ()
virtual UMLObject * clone () const
Draw_Type getDrawAsType ()
void saveToXMI (QDomDocument &qDoc, QDomElement &qElement)
void setDrawAsType (Draw_Type type)

Protected Member Functions

bool load (QDomElement &element)

Detailed Description

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

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

Non-graphical information for a Artifact.

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

Definition at line 27 of file artifact.h.


Member Enumeration Documentation

enum UMLArtifact::Draw_Type

Artifacts can be drawn using one of several icons.

Enumerator:
defaultDraw 
file 
library 
table 

Definition at line 35 of file artifact.h.


Constructor & Destructor Documentation

UMLArtifact::UMLArtifact ( const QString &  name = QString(),
Uml::IDType  id = Uml::id_None 
) [explicit]

Sets up an Artifact.

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

Definition at line 23 of file artifact.cpp.

UMLArtifact::~UMLArtifact (  )  [virtual]

Standard deconstructor.

Definition at line 33 of file artifact.cpp.


Member Function Documentation

UMLObject * UMLArtifact::clone (  )  const [virtual]

Make a clone of this object.

Returns:
the cloned object

Implements UMLObject.

Definition at line 41 of file artifact.cpp.

UMLArtifact::Draw_Type UMLArtifact::getDrawAsType (  ) 

Returns the value of m_drawAsType.

Returns:
the value of the draw type attribute

Definition at line 87 of file artifact.cpp.

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

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

Parameters:
element the xml element to load
Returns:
the success status of the operation

Reimplemented from UMLObject.

Definition at line 67 of file artifact.cpp.

void UMLArtifact::saveToXMI ( QDomDocument &  qDoc,
QDomElement &  qElement 
) [virtual]

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

Parameters:
qDoc the xml document
qElement the xml element

Implements UMLObject.

Definition at line 54 of file artifact.cpp.

void UMLArtifact::setDrawAsType ( Draw_Type  type  ) 

Sets m_drawAsType for which method to draw the artifact as.

Parameters:
type the draw type

Definition at line 78 of file artifact.cpp.


The documentation for this class was generated from the following files:
  • artifact.h
  • artifact.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