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
.void
clear()
Clear the registry.getDefaultGroupProvider
(IComparisonScope scope, Comparison comparison) Returns the default group provider.getGroupProviders
(IComparisonScope scope, Comparison comparison) Returns the list ofIDifferenceGroupProvider
contained in the registry.Remove from the registry theIDifferenceGroupProvider
designated by the givenString
.
-
Method Details
-
getGroupProviders
Collection<IDifferenceGroupProvider.Descriptor> getGroupProviders(IComparisonScope scope, Comparison comparison) Returns the list ofIDifferenceGroupProvider
contained 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
IDifferenceGroupProvider
contained 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 theIDifferenceGroupProvider
designated by the givenString
.- Parameters:
className
- The givenString
representing aIDifferenceGroupProvider
.- Returns:
- The
IDifferenceGroupProvider
designated by the givenString
.
-
clear
void clear()Clear the registry.
-