public interface ICompositeItemBuilder extends ItemBuilder
This class builds Items that depend on other Items. These "composite Items" are themselves subclasses of Item, but they require functionality implemented by other Items to function properly. ICompositeItemBuilder.build() must return null if the list of other ItemBuilders has not be set by calling ICompositeItemBuilder.addBuilders().
item
Modifier and Type | Method and Description |
---|---|
void |
addBuilders(java.util.ArrayList<ItemBuilder> itemBuilders)
This operation sets the list of ItemBuilders that may be used by the
composite Item to construct its children.
|
build, getItemName, getItemType
void addBuilders(java.util.ArrayList<ItemBuilder> itemBuilders)
This operation sets the list of ItemBuilders that may be used by the composite Item to construct its children. This operation should be called before ICompositeItemBuilder.build().
itemBuilders
- The list of ItemBuilders. This list should contain one or more ItemBuilders. If it does not, then building a composite Item with this builder must fail.