umbrello API Documentation

UMLEnumLiteral Class Reference

This class is used to set up information for an enum literal. Sets up attribute information. More...

#include <enumliteral.h>

Inheritance diagram for UMLEnumLiteral:

UMLClassifierListItem UMLObject List of all members.

Public Member Functions

 UMLEnumLiteral (const UMLObject *parent, const QString &name, Uml::IDType id=Uml::id_None)
 Sets up an enum literal.
 UMLEnumLiteral (const UMLObject *parent)
 Sets up an enum literal.
bool operator== (UMLEnumLiteral &rhs)
 Overloaded '==' operator.
virtual void copyInto (UMLEnumLiteral *rhs) const
 Copy the internal presentation of this object into the new object.
virtual UMLObjectclone () const
 Make a clone of this object.
virtual ~UMLEnumLiteral ()
 destructor
void saveToXMI (QDomDocument &qDoc, QDomElement &qElement)
 Creates the <UML:EnumLiteral> XMI element.
bool showPropertiesDialog (QWidget *parent)
 Display the properties configuration dialog for the enum literal.

Protected Member Functions

bool load (QDomElement &element)
 Loads the <UML:EnumLiteral> XMI element (empty.).

Detailed Description

This class is used to set up information for an enum literal. Sets up attribute information.

Enum literals are the values that enums can be set to.

Author:
Paul Hensgen <phensgen@techie.com>
See also:
UMLObject Bugs and comments to uml-devel@lists.sf.net or http://bugs.kde.org

Definition at line 27 of file enumliteral.h.


Constructor & Destructor Documentation

UMLEnumLiteral::UMLEnumLiteral const UMLObject parent,
const QString &  name,
Uml::IDType  id = Uml::id_None
 

Sets up an enum literal.

Parameters:
parent The parent of this UMLEnumLiteral.
name The name of this UMLEnumLiteral.
id The unique id given to this UMLEnumLiteral.

Definition at line 18 of file enumliteral.cpp.

Referenced by clone().

UMLEnumLiteral::UMLEnumLiteral const UMLObject parent  ) 
 

Sets up an enum literal.

Parameters:
parent The parent of this UMLEnumLiteral.

Definition at line 24 of file enumliteral.cpp.

UMLEnumLiteral::~UMLEnumLiteral  )  [virtual]
 

destructor

Definition at line 28 of file enumliteral.cpp.


Member Function Documentation

bool UMLEnumLiteral::operator== UMLEnumLiteral rhs  ) 
 

Overloaded '==' operator.

Definition at line 30 of file enumliteral.cpp.

void UMLEnumLiteral::copyInto UMLEnumLiteral rhs  )  const [virtual]
 

Copy the internal presentation of this object into the new object.

Definition at line 40 of file enumliteral.cpp.

References UMLClassifierListItem::copyInto().

Referenced by clone().

UMLObject * UMLEnumLiteral::clone  )  const [virtual]
 

Make a clone of this object.

Implements UMLClassifierListItem.

Definition at line 45 of file enumliteral.cpp.

References clone(), copyInto(), and UMLEnumLiteral().

Referenced by clone().

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

Creates the <UML:EnumLiteral> XMI element.

Implements UMLObject.

Definition at line 54 of file enumliteral.cpp.

References UMLObject::save().

bool UMLEnumLiteral::showPropertiesDialog QWidget *  parent  )  [virtual]
 

Display the properties configuration dialog for the enum literal.

Implements UMLClassifierListItem.

Definition at line 63 of file enumliteral.cpp.

References UMLObject::getName(), and UMLObject::setName().

Referenced by UMLEnum::createEnumLiteral().

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

Loads the <UML:EnumLiteral> XMI element (empty.).

Reimplemented from UMLObject.

Definition at line 59 of file enumliteral.cpp.


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:07 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003