Package org.apache.unomi.api
Class CustomItem
- java.lang.Object
-
- org.apache.unomi.api.Item
-
- org.apache.unomi.api.CustomItem
-
- All Implemented Interfaces:
Serializable
public class CustomItem extends Item
A generic extension of Item for context server extensions, properties are stored in a Map.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CustomItem()
Instantiates a new Custom item.CustomItem(String itemId, String itemType)
Instantiates a new Custom item.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCustomItemType()
Map<String,Object>
getProperties()
Retrieves 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 Detail
-
ITEM_TYPE
public static final String ITEM_TYPE
The CustomItem ITEM_TYPE.
-
-
Method Detail
-
getProperties
public Map<String,Object> getProperties()
Retrieves this CustomItem's properties.- Returns:
- a Map of the item's properties associating the property name as key to its value.
-
setProperties
public void setProperties(Map<String,Object> properties)
Sets the properties.- Parameters:
properties
- the properties
-
getCustomItemType
public String getCustomItemType()
-
setCustomItemType
public void setCustomItemType(String customItemType)
-
-