public interface ItemBuilder
The ItemBuilder interface is used to register an Item with the ItemManager and to build Items of a specific type. The getItemName() and getItemType() operations provide information that can be used to organize Items and the build() operation encapsulates the logical required to instantiate subclasses of Item.
In ICE, this interface is used as a pluggable service in the OSGi framework to provide Items to the Core. ItemBuilders are also registered for serialized Items that are persistent on the disk.
Modifier and Type | Method and Description |
---|---|
Item |
build(org.eclipse.core.resources.IProject projectSpace)
This operation builds and returns an instance of the Item that can be
constructed by the ItemBuilder.
|
java.lang.String |
getItemName()
This operation returns the short name of the Item that can be constructed
by this ItemBuilder.
|
ItemType |
getItemType()
This operation returns the type of Item that can be built by the
ItemBuilder.
|
static final Item item
java.lang.String getItemName()
This operation returns the short name of the Item that can be constructed by this ItemBuilder.
The name
ItemType getItemType()
This operation returns the type of Item that can be built by the ItemBuilder.
The type
Item build(org.eclipse.core.resources.IProject projectSpace)
This operation builds and returns an instance of the Item that can be constructed by the ItemBuilder.
projectSpace
- The Eclipse project that the Item should use for storage.
The newly created Item.