Class OperationImplementation
- java.lang.Object
-
- org.eclipse.emf.edapt.declaration.OperationImplementation
-
- Direct Known Subclasses:
AnnotateModelElement
,ChangeAttributeType
,ClassToAssociation
,CollectFeature
,CombineFeature
,CopyFeature
,CreateEnumeration
,DeleteClass
,DeleteFeature
,DeleteFeature2
,DeleteOppositeReference
,DeletePackage
,DropContainment
,DropOpposite
,EnumerationToSubClasses
,ExtractAndGroupAttribute
,ExtractClass
,ExtractExistingClass
,ExtractSubClass
,ExtractSuperClass
,ExtractSuperClass2
,FlattenHierarchy
,GeneralizeSuperType
,GeneralizeTypedElement
,ImitateSuperType
,InlineClass
,InlineSubClass
,InlineSuperClass
,IntroduceReferenceClass
,MakeAbstract
,MakeContainment
,MakeFeatureVolatile
,Merge
,MoveClassifier
,MoveFeature
,NewAttribute
,NewClass
,NewOppositeReference
,NewReference
,NotChangeableToSuppressedSetVisibility
,OperationToVolatile
,PartitionComposite
,PartitionReference
,PropagateFeature
,PullFeature
,PullOperation
,PushFeature
,PushOperation
,RemoveSuperfluousSuperType
,RemoveSuperType
,Rename
,ReplaceClass
,ReplaceClassBySibling
,ReplaceEnum
,ReplaceFeature
,ReplaceIdentifierByReference
,ReplaceInheritanceByDelegation
,ReplaceLiteral
,SpecializeComposition
,SpecializeReference
,SpecializeReferenceType
,SpecializeSuperType
,SplitStringAttribute
,SubClassesToEnumeration
,SuppressedSetVisibilityToNotChangeable
,UnfoldClass
,UniteReferences
,UseSuperClass
,VolatileToOpposite
public abstract class OperationImplementation extends Object
Base class for implementations of operations.- Version:
- $Rev$
- Author:
- herrmama, $Author$
-
-
Constructor Summary
Constructors Constructor Description OperationImplementation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkAndExecute(Metamodel metamodel, Model model)
Check the preconditions before executing the operation.List<String>
checkPreconditions(Metamodel metamodel)
Check the preconditions of the operation.List<String>
checkRestriction(String parameterName, Object value, Metamodel metamodel)
Check whether all restrictions on a certain parameter value are fulfilled for a certain value.List<String>
checkRestriction(String parameterName, Metamodel metamodel)
Check whether all restrictions on a certain parameter are fulfilled.void
initialize(Metamodel metamodel)
Initialize the parameters of the operation.
-
-
-
Method Detail
-
checkPreconditions
public final List<String> checkPreconditions(Metamodel metamodel)
Check the preconditions of the operation.
-
checkAndExecute
public void checkAndExecute(Metamodel metamodel, Model model) throws MigrationException
Check the preconditions before executing the operation.- Throws:
MigrationException
-
checkRestriction
public List<String> checkRestriction(String parameterName, Metamodel metamodel)
Check whether all restrictions on a certain parameter are fulfilled.
-
checkRestriction
public List<String> checkRestriction(String parameterName, Object value, Metamodel metamodel)
Check whether all restrictions on a certain parameter value are fulfilled for a certain value.
-
initialize
public void initialize(Metamodel metamodel)
Initialize the parameters of the operation.
-
-