|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRPOperation
The IRPOperation interface represents operations of classes in Rational Rhapsody models.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.telelogic.rhapsody.core.IRPModelElement |
---|
IRPModelElement.OSLCLink |
Method Summary | |
---|---|
void |
createAutoFlowChart()
Creates a flowchart for the operation. |
void |
deleteArgument(IRPArgument argument)
Deletes a specific argument from the operation. |
void |
deleteFlowchart()
Deletes the flowchart or activity defined for the operation. |
java.lang.String |
getBody()
Returns the body of the operation. |
IRPFlowchart |
getFlowchart()
Returns the flowchart or activity defined for the operation. |
java.lang.String |
getImplementationSignature()
Returns the signature of the operation as it will appear in the generated code. |
java.lang.String |
getInitializer()
For constructors, gets the initializer code that was defined for the operation. |
int |
getIsAbstract()
Checks whether the operation was defined as abstract. |
int |
getIsCgDerived()
Checks whether the operation is an operation that is automatically generated by Rhapsody. |
int |
getIsConst()
For operations in C++ classes, checks whether the operation was defined as a constant member function. |
int |
getIsCtor()
Checks whether the operation is a constructor. |
int |
getIsDtor()
Checks whether the operation is a destructor. |
int |
getIsFinal()
For operations in Java classes, checks whether the operation was defined as final. |
int |
getIsInline()
Checks whether the code for the operation will be generated inline. |
int |
getIsStatic()
Checks whether the operation was defined as static. |
int |
getIsTrigger()
Checks whether the operation was defined as a triggered operation. |
int |
getIsVirtual()
For operations in C++ or C# classes, checks whether the operation was defined as virtual. |
IRPClassifier |
getReturns()
Gets the return type of the operation. |
java.lang.String |
getReturnTypeDeclaration()
If an on-the-fly type is used as the return type of an operation, this method returns the declaration for the type. |
java.lang.String |
getVisibility()
Gets the visibility specified for the operation. |
void |
setBody(java.lang.String body)
Sets the body of an operation. |
void |
setFlowchart(IRPFlowchart flowchart)
Specifies a flowchart or activity for the operation. |
void |
setInitializer(java.lang.String initializer)
For constructors, used to specify code for the initializer of the operation. |
void |
setIsAbstract(int isAbstract)
Specifies whether an operation should be defined as abstract. |
void |
setIsConst(int isConst)
For operations in C++ classes, used to specify whether an operation should be defined as a constant member function. |
void |
setIsFinal(int isFinal)
For operations in Java classes, used to specify whether an operation should be defined as final. |
void |
setIsStatic(int isStatic)
Specifies whether an operation should be defined as static. |
void |
setIsVirtual(int isVirtual)
For operations in C++ or C# classes, used to specify whether an operation should be defined as virtual. |
void |
setReturns(IRPClassifier returns)
Specifies the return type of the operation. |
void |
setReturnTypeDeclaration(java.lang.String newVal)
Creates an on-the-fly type to use as the return type of the operation, using the declaration that you provide as a parameter. |
void |
setVisibility(java.lang.String visibility)
set property visibility |
Methods inherited from interface com.telelogic.rhapsody.core.IRPInterfaceItem |
---|
addArgument, addArgumentBeforePosition, getArguments, getSignature, getSignatureNoArgNames, getSignatureNoArgTypes, matchOnSignature |
Methods inherited from interface com.telelogic.rhapsody.core.IRPUnit |
---|
copyToAnotherProject, getAddToModelMode, getCMHeader, getCMState, getCurrentDirectory, getFilename, getIncludeInNextLoad, getIsStub, getLanguage, getLastModifiedTime, getNestedSaveUnits, getNestedSaveUnitsCount, getStructureDiagrams, isReadOnly, isReferenceUnit, isSeparateSaveUnit, load, moveToAnotherProjectLeaveAReference, referenceToAnotherProject, save, setCMHeader, setFilename, setIncludeInNextLoad, setLanguage, setReadOnly, setSeparateSaveUnit, setUnitPath, unload |
Method Detail |
---|
void createAutoFlowChart()
void deleteArgument(IRPArgument argument)
argument
- The argument that should be deletedvoid deleteFlowchart()
java.lang.String getBody()
IRPFlowchart getFlowchart()
java.lang.String getImplementationSignature()
java.lang.String getInitializer()
int getIsAbstract()
int getIsCgDerived()
int getIsConst()
int getIsCtor()
int getIsDtor()
int getIsFinal()
int getIsInline()
int getIsStatic()
int getIsTrigger()
int getIsVirtual()
java.lang.String getReturnTypeDeclaration()
IRPClassifier getReturns()
java.lang.String getVisibility()
void setBody(java.lang.String body)
body
- The code to use for the body of the operation. Use \n to represent the line breaks, for example, takePicture.setBody("openShutter();\ncloseShutter();");
void setFlowchart(IRPFlowchart flowchart)
flowchart
- the flowchart or activity to use for the operationvoid setInitializer(java.lang.String initializer)
initializer
- The code to use for the initializer of the operationvoid setIsAbstract(int isAbstract)
isAbstract
- Use 1 to specify that the operation should be defined as abstract. Use 0 to specify that the operation should not be defined as abstract.void setIsConst(int isConst)
isConst
- Use 1 to specify that the operation should be defined as a constant member function. Use 0 to specify that the operation should not be defined as a constant member function.void setIsFinal(int isFinal)
isFinal
- Use 1 to specify that the operation should be defined as final. Use 0 to specify that the operation should not be defined as final.void setIsStatic(int isStatic)
isStatic
- Use 1 to specify that the operation should be defined as static. Use 0 to specify that the operation should not be defined as static.void setIsVirtual(int isVirtual)
isVirtual
- Use 1 to specify that the operation should be defined as virtual. Use 0 to specify that the operation should not be defined as virtual.void setReturnTypeDeclaration(java.lang.String newVal)
newVal
- The declaration to use for the on-the-fly type that is to be created to use as the return type of the operationvoid setReturns(IRPClassifier returns)
returns
- the return type to use for the operationvoid setVisibility(java.lang.String visibility)
RhapsodyRuntimeException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |