Class MultiVariantModelBasicFix

java.lang.Object
com.e1c.g5.v8.dt.check.qfix.components.BasicFix<BasicModelFixContext>
com.e1c.g5.v8.dt.check.qfix.components.MultiVariantModelBasicFix
All Implemented Interfaces:
IFix<BasicModelFixContext>

public abstract class MultiVariantModelBasicFix extends BasicFix<BasicModelFixContext> implements IFix<BasicModelFixContext>
Multi-variant model fix definition
  • Constructor Details

    • MultiVariantModelBasicFix

      public MultiVariantModelBasicFix()
  • Method Details

    • getRequiredContextType

      public Class<BasicModelFixContext> getRequiredContextType()
      Description copied from interface: IFix
      Gets the required context type
      Specified by:
      getRequiredContextType in interface IFix<BasicModelFixContext>
      Returns:
      The type of the context that is required by the fix variant to work. May not be null
    • getVariants

      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<BasicModelFixContext>
      Returns:
      The collection of variants. May not be null
    • onRegistration

      public void onRegistration(FixDescriptor registrationContext)
      Description copied from interface: IFix
      This method is being called by the fix engine during the initialization phase. The developer may register additional fix entitier, like context factories, fix change processors, preview providers which are specific only to this fix
      Specified by:
      onRegistration in interface IFix<BasicModelFixContext>
      Parameters:
      registrationContext - The descriptor of the fix. A fix developer should use it to register fix specific components. May not be null
    • buildVariants

      protected abstract void buildVariants()
      Creates and sets up fix variants
    • configureFix

      protected void configureFix(SingleVariantModelBasicFix.FixConfigurer configurer)
      Sets up the quick fix
      Parameters:
      configurer - the fix configurer, cannot be null