T
- An Item.public interface IItemRegistry<T>
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 id)
Return the item descriptor.
|
List<IItemDescriptor<T>> |
getItemDescriptors()
Get a list of all
IItemDescriptor from the registry. |
IItemDescriptor<T> |
remove(String id)
Remove an
IItemDescriptor using its key. |
int |
size()
Get the size of the registry.
|
List<IItemDescriptor<T>> getItemDescriptors()
IItemDescriptor
from the registry.IItemDescriptor
IItemDescriptor<T> getHighestRankingDescriptor()
IItemDescriptor
or null
if noneIItemDescriptor<T> getItemDescriptor(String id)
id
- Id of the descriptor.IItemDescriptor<T> add(IItemDescriptor<T> itemDescriptor)
itemDescriptor
- The descriptor to addIItemDescriptor
if any.IItemDescriptor<T> remove(String id)
IItemDescriptor
using its key.id
- Unique identifier of the IItemDescriptor
IItemDescriptor
has been removedvoid clear()
int size()
Copyright (c) 2006, 2014 Obeo and others. All rights reserved.