umbrello/umbrello
UMLArtifact Class Reference
This class contains the non-graphical information required for a UML Artifact. More...
#include <artifact.h>

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.
- 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
Artifacts can be drawn using one of several icons.
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:
KDE 4.4 API Reference