Package com.e1c.g5.v8.dt.check.qfix
Interface IFixRepository
-
public interface IFixRepository
The 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 String
SERVICE_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 UIDboolean
hasFixes(CheckUid checkUid)
Indicates whether the registry contains a fix registered for the given check UIDvoid
registerChangeProcessor(IFixChangeProcessor<? extends IFixChange,? extends IFixContext> changeProcessor)
Registers the quick fix change processorvoid
registerContextFactory(IFixContextFactory<? extends IFixContext> contextFactory)
Registers the quick fix context factoryvoid
registerFix(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:
true
if the quick fix exists,false
otherwise
-
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
-
-