Package org.openhab.core.items
Interface ItemBuilderFactory
@NonNullByDefault
public interface ItemBuilderFactory
Creates a new
ItemBuilder
which is based on all available ItemFactory
s.- Author:
- Henning Treu - Initial contribution
-
Method Summary
Modifier and TypeMethodDescriptionnewItemBuilder
(String itemType, String itemName) Create a newItemBuilder
, which is initialized by the given item.newItemBuilder
(Item item) Create a newItemBuilder
, which is initialized by the given item.
-
Method Details
-
newItemBuilder
Create a newItemBuilder
, which is initialized by the given item.- Parameters:
item
- the template to initialize the builder with- Returns:
- an ItemBuilder instance
-
newItemBuilder
Create a newItemBuilder
, which is initialized by the given item.- Parameters:
itemType
- the item type to createitemName
- the name of the item to create- Returns:
- an ItemBuilder instance
-