class UMLObject

The base class for UML objects. More...

Definition#include <./umlobject.h>
InheritsQObject (unknown) [public ], Uml [public ]
Inherited byUMLActor, UMLAttribute, UMLConcept, UMLOperation, UMLUseCase
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Members


Detailed Description

This class is the non-graphical version of UMLWidget. These are created and maintained in the class UMLDoc. This class holds all the generic information needed for all UMLObjects.

 UMLObject (QObject * parent, QString Name, int id)

UMLObject

Creates a UMLObject.

Parameters:
parentThe parent of the object.
nameThe name of the object.
idThe ID of the object.

 UMLObject (QObject * parent)

UMLObject

Creates a UMLObject.

Parameters:
parentThe parent of the object.

bool  operator== (UMLObject & rhs )

operator==

Overloaded '==' operator

 ~UMLObject ()

~UMLObject

Standard deconstructor.

UMLObject_Type  getBaseType ()

getBaseType

Returns the type of the object.

Returns: Returns the type of the object.

int  getID ()

getID

Returns the ID of the object.

Returns: Returns the ID of the object.

void  setDoc (QString d)

setDoc

Sets the documentation for the object.

Parameters:
dThe documentation for the object.

QString  getDoc ()

getDoc

Returns the documentation for the object.

Returns: Returns the documentation for the object.

Scope  getScope ()

getScope

Returns the scope of the object.

Returns: Returns the scope of the object.

void  setScope (Scope s)

setScope

Sets the scope of the object.

Parameters:
sThe scope of the object.

bool  serialize (QDataStream *s, bool archive)

serialize

[virtual]

Use to save or load this classes information

Parameters:
sPointer to the datastream (file) to save/load from.
archiveIf true will save the classes information, else will load the information.

Returns: Returns the status of the operation.

void  setStereotype (QString _name)

setStereotype

Sets the classes Stereotype.

Parameters:
_nameSets the classes Stereotype name.

void  setPackage (QString _name)

setPackage

Sets the classes Package.

Parameters:
_nameThe classes Package name.

QString  getStereotype ()

getStereotype

Returns the classes Stereotype.

Returns: Returns the classes Stereotype.

QString  getPackage ()

getPackage

Returns the classes Package.

Returns: Returns the classes Package.

long  getClipSizeOf ()

getClipSizeOf

[virtual]

Returns the amount of bytes needed to serialize an instance object to the clipboard

void  setID (int NewID)

setID

Assigns a new Id to the object

QString  GetName ()

GetName

Returns a copy of m_Name

void  SetName (QString strName)

SetName

Set the UMlObject's name

bool  getAbstract ()

getAbstract

Returns the abstract state of the object.

void  setAbstract (bool bAbstract)

setAbstract

Sets the abstract state of the object.

bool  saveToXMI ( QDomDocument & qDoc, QDomElement & qElement )

saveToXMI

[virtual]

bool  loadFromXMI ( QDomElement & element )

loadFromXMI

[virtual]

int m_nId

m_nId

[protected]

QString m_Doc

m_Doc

[protected]

QString m_Package

m_Package

[protected]

QString m_Stereotype

m_Stereotype

[protected]

QString m_Name

m_Name

[protected]

UMLObject_Type m_BaseType

m_BaseType

[protected]

Scope m_Scope

m_Scope

[protected]

bool m_bAbstract

m_bAbstract

[protected]