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:
  • Field Details

  • Constructor Details

    • CustomItem

      public CustomItem()
      Instantiates a new Custom item.
    • CustomItem

      public CustomItem(String itemId, String itemType)
      Instantiates a new Custom item.
      Parameters:
      itemId - the item id
      itemType - the item type
  • Method Details

    • 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)