public class WeightProviderDescriptorRegistryImpl extends Object implements WeightProvider.Descriptor.Registry
| Constructor and Description | 
|---|
| WeightProviderDescriptorRegistryImpl()Creates a new extension registry. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | clear()Removes all extensions from this registry. | 
| static WeightProvider.Descriptor.Registry | createStandaloneInstance()Returns a registry filled with the default weight provider  DefaultWeightProviderand the ecore
 weight providerEcoreWeightProviderprovided by EMF Compare. | 
| com.google.common.collect.ImmutableList<WeightProvider.Descriptor> | getDescriptors()This will return a copy of the registered weight providers list. | 
| WeightProvider | getHighestRankingWeightProvider(EPackage ePackage)Retrieve the highest ranking weight provider from a given  ePackage. | 
| com.google.common.collect.ImmutableList<WeightProvider> | getWeightProviders(EPackage ePackage)Retrieve the weight providers from a given  ePackage. | 
| WeightProvider.Descriptor | put(String key,
   WeightProvider.Descriptor weightProvider)Adds a weight provider to the registry. | 
| WeightProvider.Descriptor | remove(String key)Removes a weight provider from this registry. | 
public WeightProviderDescriptorRegistryImpl()
public static WeightProvider.Descriptor.Registry createStandaloneInstance()
DefaultWeightProvider and the ecore
 weight provider EcoreWeightProvider provided by EMF Compare.public WeightProvider.Descriptor put(String key, WeightProvider.Descriptor weightProvider)
put in interface WeightProvider.Descriptor.Registrykey - key with which the specified descriptor is to be associatedweightProvider - weight provider that is to be added to this registry.public void clear()
clear in interface WeightProvider.Descriptor.Registrypublic com.google.common.collect.ImmutableList<WeightProvider.Descriptor> getDescriptors()
getDescriptors in interface WeightProvider.Descriptor.Registrypublic WeightProvider.Descriptor remove(String key)
remove in interface WeightProvider.Descriptor.Registrykey - key of the weight provider descriptor that is to be removed from the registry.public WeightProvider getHighestRankingWeightProvider(EPackage ePackage)
ePackage.getHighestRankingWeightProvider in interface WeightProvider.Descriptor.RegistryePackage - The given ePackage.public com.google.common.collect.ImmutableList<WeightProvider> getWeightProviders(EPackage ePackage)
ePackage.getWeightProviders in interface WeightProvider.Descriptor.RegistryePackage - The given ePackage.
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.