Package org.openhab.core.library
Class CoreItemFactory
java.lang.Object
org.openhab.core.library.CoreItemFactory
- All Implemented Interfaces:
ItemFactory
CoreItemFactory
-Implementation for the core ItemTypes- Author:
- Thomas Eichstaedt-Engelen - Initial contribution, Kai Kreuzer - Initial contribution, Alexander Kostadinov - Initial contribution
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable GenericItem
createItem
(@Nullable String itemTypeName, String itemName) Creates a new Item instance of typeitemTypeName
and the nameitemName
String[]
Returns the list of all supported ItemTypes of this Factory.
-
Field Details
-
CALL
- See Also:
-
COLOR
- See Also:
-
CONTACT
- See Also:
-
DATETIME
- See Also:
-
DIMMER
- See Also:
-
IMAGE
- See Also:
-
LOCATION
- See Also:
-
NUMBER
- See Also:
-
PLAYER
- See Also:
-
ROLLERSHUTTER
- See Also:
-
STRING
- See Also:
-
SWITCH
- See Also:
-
-
Constructor Details
-
CoreItemFactory
-
-
Method Details
-
createItem
Description copied from interface:ItemFactory
Creates a new Item instance of typeitemTypeName
and the nameitemName
- Specified by:
createItem
in interfaceItemFactory
- Parameters:
itemTypeName
-itemName
-- Returns:
- a new Item of type
itemTypeName
ornull
if no matching class is known.
-
getSupportedItemTypes
Description copied from interface:ItemFactory
Returns the list of all supported ItemTypes of this Factory.- Specified by:
getSupportedItemTypes
in interfaceItemFactory
- Returns:
- the supported ItemTypes
-