T - one of the item classpublic class ItemRegistry<T> extends Object implements IItemRegistry<T>
IItemDescriptor.| Constructor and Description | 
|---|
| ItemRegistry() | 
| Modifier and Type | Method and Description | 
|---|---|
| IItemDescriptor<T> | add(IItemDescriptor<T> itemDescriptor)Add an item descriptor to the registry. | 
| void | clear()Clear the registry. | 
| IItemDescriptor<T> | getHighestRankingDescriptor()Get the descriptor with the highest ranking in the registry. | 
| IItemDescriptor<T> | getItemDescriptor(String qualifiedClassName)Return the item descriptor. | 
| List<IItemDescriptor<T>> | getItemDescriptors()Get a list of all  IItemDescriptorfrom the registry. | 
| IItemDescriptor<T> | remove(String className)Remove an  IItemDescriptorusing its key. | 
| int | size()Get the size of the registry. | 
public IItemDescriptor<T> getHighestRankingDescriptor()
getHighestRankingDescriptor in interface IItemRegistry<T>IItemDescriptor or null if nonepublic List<IItemDescriptor<T>> getItemDescriptors()
IItemDescriptor from the registry.getItemDescriptors in interface IItemRegistry<T>IItemDescriptorpublic IItemDescriptor<T> add(IItemDescriptor<T> itemDescriptor)
add in interface IItemRegistry<T>itemDescriptor - The descriptor to addIItemDescriptor if any.public IItemDescriptor<T> remove(String className)
IItemDescriptor using its key.remove in interface IItemRegistry<T>className - Unique identifier of the IItemDescriptorIItemDescriptor has been removedpublic void clear()
clear in interface IItemRegistry<T>public int size()
size in interface IItemRegistry<T>public IItemDescriptor<T> getItemDescriptor(String qualifiedClassName)
getItemDescriptor in interface IItemRegistry<T>qualifiedClassName - Id of the descriptor.
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.