|
|
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:
| parent | The parent to this operation. |
| name | The name of the operation. |
| id | The id of the operation. |
| s | The scope of the operation. |
| rt | The return type of the operation. |
| UMLOperation (QObject * parent)
| UMLOperation |
Constructs an UMLOperation.
Parameters:
| parent | The 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:
| rt | The 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:
| type | The type of the parameter. |
| name | The name of the parameter. |
| void removeParm (UMLAttribute *a)
| removeParm |
Remove a parameter from the operation.
Parameters:
| a | The 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:
| name | The 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:
| sig | What 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:
| s | Pointer to the datastream (file) to save/load from. |
| archive | If 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:
| type | The type of the parameter. |
| name | The 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.