Class MapDataItem

java.lang.Object
io.jmix.chartsflowui.data.item.MapDataItem
All Implemented Interfaces:
DataItem, Serializable

public class MapDataItem extends Object implements DataItem
Data item, which is a set of key-value pairs.
See Also:
  • Field Details

  • Constructor Details

    • MapDataItem

      public MapDataItem()
    • MapDataItem

      public MapDataItem(Map<String,Object> properties)
  • Method Details

    • getValue

      public Object getValue(String property)
      Specified by:
      getValue in interface DataItem
      Parameters:
      property - name of property
      Returns:
      the value of a property with the specified property name
    • add

      public MapDataItem add(String key, Object value)
      Adds value with given key.
      Parameters:
      key - name of property
      value - property value
      Returns:
      this MapDataItem
    • remove

      public void remove(String key)
      Removes property from this MapDataItem
      Parameters:
      key - name of property
    • getId

      public Object getId()
      Specified by:
      getId in interface DataItem
      Returns:
      unique identifier of DataItem