Interface IDifferenceGroupProvider.Descriptor.Registry
-
- All Known Implementing Classes:
DifferenceGroupRegistryImpl
- Enclosing interface:
- IDifferenceGroupProvider.Descriptor
public static interface IDifferenceGroupProvider.Descriptor.RegistryA registry ofIDifferenceGroupProvider.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IDifferenceGroupProvider.Descriptoradd(IDifferenceGroupProvider.Descriptor provider, String className)Add to the registry the givenIDifferenceGroupProvider.voidclear()Clear the registry.IDifferenceGroupProvider.DescriptorgetDefaultGroupProvider(IComparisonScope scope, Comparison comparison)Returns the default group provider.Collection<IDifferenceGroupProvider.Descriptor>getGroupProviders(IComparisonScope scope, Comparison comparison)Returns the list ofIDifferenceGroupProvidercontained in the registry.IDifferenceGroupProvider.Descriptorremove(String className)Remove from the registry theIDifferenceGroupProviderdesignated by the givenString.
-
-
-
Method Detail
-
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
IDifferenceGroupProvider.Descriptor remove(String className)
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.
-
-