Class SingleVariantBasicFix<C extends BasicFixContext>
- java.lang.Object
-
- com.e1c.g5.v8.dt.check.qfix.components.BasicFix<C>
-
- com.e1c.g5.v8.dt.check.qfix.components.SingleVariantBasicFix<C>
-
- All Implemented Interfaces:
IFix<C>
,IFixVariant<C>
- Direct Known Subclasses:
SingleVariantModelBasicFix
,SingleVariantXtextBslModuleFix
public abstract class SingleVariantBasicFix<C extends BasicFixContext> extends BasicFix<C> implements IFix<C>, IFixVariant<C>
Testing sample of API L2 that checks the capability to create the all-in-one fix with a single variant
-
-
Constructor Summary
Constructors Constructor Description SingleVariantBasicFix()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<IFixVariant<C>>
getVariants(C context, IFixSession session)
Gets declared variants for the given fix.protected boolean
isFixApplicable(C context, IFixSession session)
Checks if the fix is applicable for the given context-
Methods inherited from class com.e1c.g5.v8.dt.check.qfix.components.BasicFix
getCheckId
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.e1c.g5.v8.dt.check.qfix.IFix
getCheckId, getRequiredContextType, onRegistration
-
Methods inherited from interface com.e1c.g5.v8.dt.check.qfix.IFixVariant
describeChanges, prepareChanges
-
-
-
-
Method Detail
-
getVariants
public Collection<IFixVariant<C>> getVariants(C context, IFixSession session)
Description copied from interface:IFix
Gets declared variants for the given fix. Variant applicability may be controlled using the provided context- Specified by:
getVariants
in interfaceIFix<C extends BasicFixContext>
- Returns:
- The collection of variants. May not be
null
-
isFixApplicable
protected boolean isFixApplicable(C context, IFixSession session)
Checks if the fix is applicable for the given context- Parameters:
context
- The context to check. May not benull
session
- The fix session. May not benull
- Returns:
- True if the context is applicable. False otherwise
-
-