Package org.contextmapper.dsl.quickfixes
Class CreateMissingBoundedContextQuickFix
- java.lang.Object
-
- org.contextmapper.dsl.quickfixes.CreateMissingBoundedContextQuickFix
-
- All Implemented Interfaces:
CMLQuickFix<ContextMappingModel>
public class CreateMissingBoundedContextQuickFix extends java.lang.Object implements CMLQuickFix<ContextMappingModel>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
LINK_DIAGNOSTIC_MESSAGE_PATTERN
-
Constructor Summary
Constructors Constructor Description CreateMissingBoundedContextQuickFix(java.lang.String missingContextName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyQuickfix(ContextMappingModel model)
Applies a quick fix (semantic change to the ContextMappingModel).void
applyQuickfix2EObject(org.eclipse.emf.ecore.EObject contextObject)
Applies a quick fix (semantic change to the ContextMappingModel).java.lang.String
getDescription()
Defines the description text of the quick fix.java.lang.String
getName()
Defines the name of the quick fix.
-
-
-
Field Detail
-
LINK_DIAGNOSTIC_MESSAGE_PATTERN
public static final java.lang.String LINK_DIAGNOSTIC_MESSAGE_PATTERN
- See Also:
- Constant Field Values
-
-
Method Detail
-
applyQuickfix
public void applyQuickfix(ContextMappingModel model)
Description copied from interface:CMLQuickFix
Applies a quick fix (semantic change to the ContextMappingModel).- Specified by:
applyQuickfix
in interfaceCMLQuickFix<ContextMappingModel>
- Parameters:
model
- the object on which the quickfix is triggered (must be part of the model)
-
applyQuickfix2EObject
public void applyQuickfix2EObject(org.eclipse.emf.ecore.EObject contextObject)
Description copied from interface:CMLQuickFix
Applies a quick fix (semantic change to the ContextMappingModel). IN CASE THE TYPE OF THE TRIGGER OBJECT IS NOT KNOWN!- Specified by:
applyQuickfix2EObject
in interfaceCMLQuickFix<ContextMappingModel>
- Parameters:
contextObject
- the object on which the quickfix is triggered (must be part of the model)
-
getName
public java.lang.String getName()
Description copied from interface:CMLQuickFix
Defines the name of the quick fix.- Specified by:
getName
in interfaceCMLQuickFix<ContextMappingModel>
- Returns:
- name of the quick fix as string
-
getDescription
public java.lang.String getDescription()
Description copied from interface:CMLQuickFix
Defines the description text of the quick fix.- Specified by:
getDescription
in interfaceCMLQuickFix<ContextMappingModel>
- Returns:
- the description text of the quick fix as string
-
-