K
- the type of the key of this registrypublic class PostProcessorDescriptorRegistryImpl<K> extends Object implements IPostProcessor.Descriptor.Registry<K>
Constructor and Description |
---|
PostProcessorDescriptorRegistryImpl()
Creates a new extension registry.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Removes all extensions from this registry.
|
List<IPostProcessor.Descriptor> |
getDescriptors()
This will return a copy of the registered post processors list.
|
List<IPostProcessor> |
getPostProcessors(IComparisonScope scope)
Retrieve the post processors from a given
scope . |
IPostProcessor.Descriptor |
put(K key,
IPostProcessor.Descriptor postProcessor)
Adds a post processor to the registry.
|
IPostProcessor.Descriptor |
remove(K key)
Removes a post processor from this registry.
|
public PostProcessorDescriptorRegistryImpl()
public void clear()
clear
in interface IPostProcessor.Descriptor.Registry<K>
org.eclipse.emf.compare.extension.Registry#clearRegistry()
public IPostProcessor.Descriptor put(K key, IPostProcessor.Descriptor postProcessor)
put
in interface IPostProcessor.Descriptor.Registry<K>
key
- key with which the specified descriptor is to be associatedpostProcessor
- Post Processor that is to be added to this registry.IPostProcessor.Descriptor.Registry.put(java.lang.Object,
org.eclipse.emf.compare.postprocessor.IPostProcessor.Descriptor)
public List<IPostProcessor.Descriptor> getDescriptors()
getDescriptors
in interface IPostProcessor.Descriptor.Registry<K>
IPostProcessor.Descriptor.Registry.getDescriptors()
public IPostProcessor.Descriptor remove(K key)
remove
in interface IPostProcessor.Descriptor.Registry<K>
key
- key of the post processor descriptor that is to be removed from the registry.IPostProcessor.Descriptor.Registry.remove(java.lang.Object)
public List<IPostProcessor> getPostProcessors(IComparisonScope scope)
scope
. The scope provides the set of
scanned namespaces and resource uris. If they match with the regex of some post processors,
then they are returned.getPostProcessors
in interface IPostProcessor.Descriptor.Registry<K>
scope
- The given scope.IPostProcessor.Descriptor.Registry.getPostProcessors(org.eclipse.emf.compare.scope.IComparisonScope)
Copyright (c) 2006, 2014 Obeo and others. All rights reserved.