Interface IDifferenceGroupProvider.Descriptor.Registry
- All Known Implementing Classes:
DifferenceGroupRegistryImpl
- Enclosing interface:
IDifferenceGroupProvider.Descriptor
public static interface IDifferenceGroupProvider.Descriptor.Registry
A registry of
IDifferenceGroupProvider.-
Method Summary
Modifier and TypeMethodDescriptionadd(IDifferenceGroupProvider.Descriptor provider, String className) Add to the registry the givenIDifferenceGroupProvider.voidclear()Clear the registry.getDefaultGroupProvider(IComparisonScope scope, Comparison comparison) Returns the default group provider.getGroupProviders(IComparisonScope scope, Comparison comparison) Returns the list ofIDifferenceGroupProvidercontained in the registry.Remove from the registry theIDifferenceGroupProviderdesignated by the givenString.
-
Method Details
-
getGroupProviders
Collection<IDifferenceGroupProvider.Descriptor> getGroupProviders(IComparisonScope scope, Comparison comparison) Returns the list ofIDifferenceGroupProvidercontained in the registry.- Parameters:
scope- The scope on which the group providers will be applied.comparison- The comparison which is to be displayed in the structural view.- Returns:
- The list of
IDifferenceGroupProvidercontained in the registry.
-
getDefaultGroupProvider
IDifferenceGroupProvider.Descriptor getDefaultGroupProvider(IComparisonScope scope, Comparison comparison) Returns the default group provider.- Parameters:
scope- The scope on which the group providers will be applied.comparison- The comparison which is to be displayed in the structural view.- Returns:
- the default group provider or null if none.
-
add
IDifferenceGroupProvider.Descriptor add(IDifferenceGroupProvider.Descriptor provider, String className) Add to the registry the givenIDifferenceGroupProvider.- Parameters:
provider- The givenIDifferenceGroupProvider.className- The class name of the given provider.- Returns:
- The previous value associated with the class name of the given
IDifferenceGroupProvider, or null if there was no entry in the registry for the class name.
-
remove
Remove from the registry theIDifferenceGroupProviderdesignated by the givenString.- Parameters:
className- The givenStringrepresenting aIDifferenceGroupProvider.- Returns:
- The
IDifferenceGroupProviderdesignated by the givenString.
-
clear
void clear()Clear the registry.
-