Class AccessorFactoryRegistryImpl
- java.lang.Object
-
- org.eclipse.emf.compare.rcp.ui.internal.contentmergeviewer.accessor.factory.impl.AccessorFactoryRegistryImpl
-
- All Implemented Interfaces:
IAccessorFactory.Registry
public class AccessorFactoryRegistryImpl extends Object implements IAccessorFactory.Registry
The default implementation ofIAccessorFactory.Registry.- Since:
- 4.0
-
-
Constructor Summary
Constructors Constructor Description AccessorFactoryRegistryImpl()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IAccessorFactoryadd(IAccessorFactory factory)Add the given factory to the registry.voidclear()Clear the registry.List<IAccessorFactory>getFactories(Object target)Returns all the factories available in the registry for the given object.IAccessorFactorygetHighestRankingFactory(Object target)Returns the highest ranking factory available for the given object.IAccessorFactoryremove(String className)Remove the factory represented by the given class name.
-
-
-
Method Detail
-
getHighestRankingFactory
public IAccessorFactory getHighestRankingFactory(Object target)
Returns the highest ranking factory available for the given object.- Specified by:
getHighestRankingFactoryin interfaceIAccessorFactory.Registry- Parameters:
target- the given object.- Returns:
- the highest ranking factory available for the given object.
- See Also:
IAccessorFactory.Registry.getHighestRankingFactory(java.lang.Object)
-
getFactories
public List<IAccessorFactory> getFactories(Object target)
Returns all the factories available in the registry for the given object.- Specified by:
getFactoriesin interfaceIAccessorFactory.Registry- Parameters:
target- the given object.- Returns:
- all the factories available in the registry for the given object.
- See Also:
IAccessorFactory.Registry.getFactories(java.lang.Object)
-
add
public IAccessorFactory add(IAccessorFactory factory)
Add the given factory to the registry.- Specified by:
addin interfaceIAccessorFactory.Registry- Parameters:
factory- the given factory.- Returns:
- the given factory.
- See Also:
org.eclipse.emf.compare.rcp.ui.contentmergeviewer.accessor.factory.IAccessorFactory.Registry#add(java.lang.Object)
-
remove
public IAccessorFactory remove(String className)
Remove the factory represented by the given class name.- Specified by:
removein interfaceIAccessorFactory.Registry- Parameters:
className- the class name of the factory to removed.- Returns:
- the factory removed.
- See Also:
org.eclipse.emf.compare.rcp.ui.contentmergeviewer.accessor.factory.IAccessorFactory.Registry#remove(java.lang.Object)
-
clear
public void clear()
Clear the registry.- Specified by:
clearin interfaceIAccessorFactory.Registry- See Also:
IAccessorFactory.Registry.clear()
-
-