T
- item typepublic abstract class AbstractItemDescriptor<T> extends Object implements IItemDescriptor<T>
IItemDescriptor
.Modifier and Type | Field and Description |
---|---|
protected static String |
EMPTY_STRING
EMPTY_STRING.
|
Constructor and Description |
---|
AbstractItemDescriptor(String label,
String description,
int rank,
String id)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(IItemDescriptor<T> o) |
String |
getDescription()
The description of the item.
|
String |
getID()
Get a unique key identifying this item.
|
static <T> com.google.common.base.Function<IItemDescriptor<T>,T> |
getItemFunction()
get a
Function to transform a descriptor into a item. |
String |
getLabel()
The label of the item.
|
int |
getRank()
Rank of the item.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getItem
protected static final String EMPTY_STRING
public String getLabel()
getLabel
in interface IItemDescriptor<T>
public String getDescription()
getDescription
in interface IItemDescriptor<T>
public int getRank()
getRank
in interface IItemDescriptor<T>
public String getID()
getID
in interface IItemDescriptor<T>
public int compareTo(IItemDescriptor<T> o)
compareTo
in interface Comparable<IItemDescriptor<T>>
public static <T> com.google.common.base.Function<IItemDescriptor<T>,T> getItemFunction()
Function
to transform a descriptor into a item.T
- A item type
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.