Package com.e1c.g5.v8.dt.check.qfix
Interface IFix<C extends IFixContext>
-
- All Known Implementing Classes:
BasicFix
,MultiVariantModelBasicFix
,MultiVariantXtextBslModuleFix
,SingleVariantBasicFix
,SingleVariantModelBasicFix
,SingleVariantXtextBslModuleFix
public interface IFix<C extends IFixContext>
The fix is intended for fixing problems being detected by someICheck
. The fix is bound to the corresponding check using it'sCheckUid
. Each check works with a specificIFixContext
for the convenience. Each fix provides one or moreIFixVariant
Fixes should be registered via theIFixRepository
, or using the corresponding extension point com.e1c.g5.v8.dt.check.fixes
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CheckUid
getCheckId()
Gets the check UID the fix is intended to.Class<C>
getRequiredContextType()
Gets the required context typeCollection<IFixVariant<C>>
getVariants(C context, IFixSession session)
Gets declared variants for the given fix.void
onRegistration(FixDescriptor fixDescriptor)
This method is being called by the fix engine during the initialization phase.
-
-
-
Method Detail
-
getCheckId
CheckUid getCheckId()
Gets the check UID the fix is intended to.- Returns:
- The unique identifier of the check. May not be
null
-
getRequiredContextType
Class<C> getRequiredContextType()
Gets the required context type- Returns:
- The type of the context that is required by the fix variant to work. May not be
null
-
getVariants
Collection<IFixVariant<C>> getVariants(C context, IFixSession session)
Gets declared variants for the given fix. Variant applicability may be controlled using the provided context- Returns:
- The collection of variants. May not be
null
-
onRegistration
void onRegistration(FixDescriptor fixDescriptor)
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- Parameters:
fixDescriptor
- The descriptor of the fix. A fix developer should use it to register fix specific components. May not benull
-
-