Package io.jmix.chartsflowui.data.item
Class SimpleDataItem
java.lang.Object
io.jmix.chartsflowui.data.item.SimpleDataItem
- All Implemented Interfaces:
DataItem
,Serializable
Data item, which contains an instance of any class.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetId()
getItem()
protected MethodsCache
getMethodsCache
(Object object) Get a property value.
-
Field Details
-
item
-
-
Constructor Details
-
SimpleDataItem
-
-
Method Details
-
getItem
-
getValue
Get a property value. Locates the property by the given path in object graph starting from this object.Each property in a class which will be used by
SimpleDataItem
must have apublic
getter method. Reflection is used to get property values.- Specified by:
getValue
in interfaceDataItem
- Parameters:
path
- path to the attribute- Returns:
- the value of a property with the specified property path
- If property value is an instance of
Collection
, then method returnsList
ofSimpleDataItem
. - If any traversing property value is null, this method stops here and returns current value.
- Otherwise, method returns getter value.
- If property value is an instance of
-
getMethodsCache
-
getId
-