Package org.apache.unomi.api
Class CustomItem
java.lang.Object
org.apache.unomi.api.Item
org.apache.unomi.api.CustomItem
- All Implemented Interfaces:
Serializable
A generic extension of Item for context server extensions, properties are stored in a Map.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new Custom item.CustomItem
(String itemId, String itemType) Instantiates a new Custom item. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves this CustomItem's properties.void
setCustomItemType
(String customItemType) void
setProperties
(Map<String, Object> properties) Sets the properties.Methods inherited from class org.apache.unomi.api.Item
equals, getItemId, getItemType, getItemType, getScope, getSystemMetadata, getVersion, hashCode, setItemId, setItemType, setScope, setSystemMetadata, setVersion
-
Field Details
-
ITEM_TYPE
The CustomItem ITEM_TYPE.
-
-
Constructor Details
-
CustomItem
public CustomItem()Instantiates a new Custom item. -
CustomItem
Instantiates a new Custom item.- Parameters:
itemId
- the item iditemType
- the item type
-
-
Method Details
-
getProperties
Retrieves this CustomItem's properties.- Returns:
- a Map of the item's properties associating the property name as key to its value.
-
setProperties
Sets the properties.- Parameters:
properties
- the properties
-
getCustomItemType
-
setCustomItemType
-