Package com.e1c.g5.v8.dt.check.qfix
Interface IFixRepository
-
public interface IFixRepositoryThe fix repository stores all registered fix artifacts, including:
- Fixes themselves
- Context factories
- Fix change processors
- Preview providers(???)
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERVICE_NAME
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IFixContextFactory<? extends IFixContext>getContextFactory(Class<? extends IFixContext> contextType)Provides the quick fix context factoryIFixChangeProcessor<?,?>getFixChangeProcessor(Class<?> changeType)Provides quick fix change processorCollection<IFix<? extends IFixContext>>getFixes(CheckUid checkUid)Provides the quick fixes collection by check UIDbooleanhasFixes(CheckUid checkUid)Indicates 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 Detail
-
SERVICE_NAME
static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
IFixChangeProcessor<?,?> getFixChangeProcessor(Class<?> changeType)
Provides quick fix change processor- Parameters:
changeType- change processor type, cannot benull- Returns:
- change processor, never
null
-
getFixes
Collection<IFix<? extends IFixContext>> getFixes(CheckUid checkUid)
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
-
hasFixes
boolean hasFixes(CheckUid checkUid)
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
void registerContextFactory(IFixContextFactory<? extends IFixContext> contextFactory)
Registers the quick fix context factory- Parameters:
contextFactory- the context factory, cannot benull
-
registerFix
void registerFix(IFix<? extends IFixContext> fix)
Manual addition of a pre-created fix to the repository- Parameters:
fix- The fix to add, cannot benull
-
-