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 Details

    • SingleVariantBasicFix

      public SingleVariantBasicFix()
  • Method Details

    • 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 interface IFix<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 be null
      session - The fix session. May not be null
      Returns:
      True if the context is applicable. False otherwise