Package com.e1c.g5.v8.dt.check.qfix
Interface IFixRepository
- All Known Implementing Classes:
FixRepository
public interface IFixRepository
The fix repository stores all registered fix artifacts, including:
- Fixes themselves
- Context factories
- Fix change processors
- Preview providers(???)
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionIFixContextFactory<? extends IFixContext>getContextFactory(Class<? extends IFixContext> contextType) Provides the quick fix context factoryIFixChangeProcessor<?,?> getFixChangeProcessor(Class<?> changeType) Provides quick fix change processorMap<CheckUid,Collection<IFix<? extends IFixContext>>> getFixes()Gets all registered fixes.Collection<IFix<? extends IFixContext>>Provides the quick fixes collection by check UIDbooleanIndicates whether the registry contains a fix registered for the given check UIDvoidregisterChangeProcessor(IFixChangeProcessor<? extends IFixChange, ? extends IFixContext> changeProcessor) Registers the quick fix change processorvoidregisterContextFactory(IFixContextFactory<? extends IFixContext> contextFactory) Registers the quick fix context factoryvoidregisterFix(IFix<? extends IFixContext> fix) Manual addition of a pre-created fix to the repository
-
Field Details
-
SERVICE_NAME
- See Also:
-
-
Method Details
-
getContextFactory
IFixContextFactory<? extends IFixContext> getContextFactory(Class<? extends IFixContext> contextType) Provides the quick fix context factory- Parameters:
contextType- the quick fix context, cannot benull- Returns:
- context factory, never
null
-
getFixChangeProcessor
Provides quick fix change processor- Parameters:
changeType- change processor type, cannot benull- Returns:
- change processor, never
null
-
getFixes
Provides the quick fixes collection by check UID- Parameters:
checkUid- check UID, cannot benull- Returns:
- the collection of quicke fixes registered for the given check UID, never
null, can be empty
-
getFixes
Map<CheckUid,Collection<IFix<? extends IFixContext>>> getFixes()Gets all registered fixes.- Returns:
- The collection of fixes. Never
null.
-
hasFixes
Indicates whether the registry contains a fix registered for the given check UID- Parameters:
checkUid- the check UID, cannot benull- Returns:
trueif the quick fix exists,falseotherwise
-
registerChangeProcessor
void registerChangeProcessor(IFixChangeProcessor<? extends IFixChange, ? extends IFixContext> changeProcessor) Registers the quick fix change processor- Parameters:
changeProcessor- the change processor, cannot benull
-
registerContextFactory
Registers the quick fix context factory- Parameters:
contextFactory- the context factory, cannot benull
-
registerFix
Manual addition of a pre-created fix to the repository- Parameters:
fix- The fix to add, cannot benull
-