Class 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 Detail

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