class UMLOperation

Holds the information to represent an operation. More...

Definition#include <./operation.h>
InheritsUMLObject [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

This class is used to set up information for an operation. This is like a programming operation. It has a return type, scope, name and paramters.

See also: UMLObject

 UMLOperation (QObject * parent, QString Name, int id, Scope s = Public, QString rt = "void")

UMLOperation

Constructs an UMLOperation.

Parameters:
parentThe parent to this operation.
nameThe name of the operation.
idThe id of the operation.
sThe scope of the operation.
rtThe return type of the operation.

 UMLOperation (QObject * parent)

UMLOperation

Constructs an UMLOperation.

Parameters:
parentThe parent to this operation.

bool  operator== ( UMLOperation & rhs )

operator==

Overloaded '==' operator

Reimplemented from UMLObject.

 ~UMLOperation ()

~UMLOperation

Standard deconstructor.

void  setReturnType (QString rt)

setReturnType

Sets the return type of the operation.

Parameters:
rtThe return type to set the operation to.

QString  getReturnType ()

getReturnType

Get the return type of the operation.

Returns: The return type.

void  addParm (QString type, QString name, QString iv, QString doc)

addParm

Add a parameter to the operation.

Parameters:
typeThe type of the parameter.
nameThe name of the parameter.

void  removeParm (UMLAttribute *a)

removeParm

Remove a parameter from the operation.

Parameters:
aThe paramter to remove.

QList<UMLAttribute>*  getParmList ()

getParmList

Returns a list of parameters.

Returns: A list of the paramters in the operation.

UMLAttribute *  findParm (QString name)

findParm

Finds a parameter of the operation.

Parameters:
nameThe parameter name to search for.

Returns: The found parameter, 0 if not found.

QString  toString (Signature_Type sig = st_NoSig)

toString

Returns a string representation of the operation.

Parameters:
sigWhat type of operation string to show.

Returns: The string representation of the operation.

bool  serialize (QDataStream *s, bool archive)

serialize

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.

Reimplemented from UMLObject.

int  getUniqueID ()

getUniqueID

void  addParm (UMLAttribute *parameter)

addParm

Add a parameter to the operation.

Parameters:
typeThe type of the parameter.
nameThe name of the parameter.

long  getClipSizeOf ()

getClipSizeOf

[virtual]

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

Reimplemented from UMLObject.

bool  saveToXMI ( QDomDocument & qDoc, QDomElement & qElement )

saveToXMI

Reimplemented from UMLObject.

bool  loadFromXMI ( QDomElement & element )

loadFromXMI

Reimplemented from UMLObject.