Package net.ssehub.easy.varModel.model
Class OperationDefinition
- java.lang.Object
-
- net.ssehub.easy.varModel.model.ModelElement
-
- net.ssehub.easy.varModel.model.ContainableModelElement
-
- net.ssehub.easy.varModel.model.OperationDefinition
-
- All Implemented Interfaces:
IDatatypeVisitable,IModelElement
public class OperationDefinition extends ContainableModelElement
A containable element which represents user defined operations.- Author:
- Holger Eichelberger
-
-
Field Summary
Fields Modifier and Type Field Description private CustomOperationoperation
-
Constructor Summary
Constructors Constructor Description OperationDefinition()Constructor for serialization.OperationDefinition(ModelElement parent)Constructor for containable model element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(IModelVisitor visitor)Accept method for the visitor.CustomOperationgetOperation()Returns the defined operation.voidsetOperation(CustomOperation operation)Changes the defined operation.-
Methods inherited from class net.ssehub.easy.varModel.model.ContainableModelElement
accept, getNameSpace, getParent, getProject, getQualifiedName, getTopLevelParent, isTopLevel, setParent
-
Methods inherited from class net.ssehub.easy.varModel.model.ModelElement
findAttribute, getComment, getName, getUniqueName, isTransparent, propagateAttribute, setComment, setName, toString
-
-
-
-
Field Detail
-
operation
private CustomOperation operation
-
-
Constructor Detail
-
OperationDefinition
OperationDefinition()
Constructor for serialization.
-
OperationDefinition
public OperationDefinition(ModelElement parent)
Constructor for containable model element.- Parameters:
parent- the object, in which this specific one is embedded
-
-
Method Detail
-
setOperation
public void setOperation(CustomOperation operation)
Changes the defined operation.- Parameters:
operation- the defined operation
-
getOperation
public CustomOperation getOperation()
Returns the defined operation.- Returns:
- the operation
-
accept
public void accept(IModelVisitor visitor)
Description copied from interface:IModelElementAccept method for the visitor.- Parameters:
visitor- The visitor, which should process this model element.
-
-