public class SimpleDataItem extends java.lang.Object implements DataItem, DataItem.HasId
DataItem.HasId
Constructor and Description |
---|
SimpleDataItem(java.lang.Object item) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getId() |
java.lang.Object |
getItem() |
java.lang.Object |
getValue(java.lang.String path)
Get an property value.
|
void |
setItem(java.lang.Object item)
Sets item.
|
public java.lang.Object getItem()
public void setItem(java.lang.Object item)
item
- item to be setpublic java.lang.Object getValue(java.lang.String path)
Each property in a class which will be used by SimpleDataItem
must have a public
getter method.
Reflection is used to get property values.
getValue
in interface DataItem
path
- path to the attributeCollection
,
then method returns List
of SimpleDataItem
.
If any traversing property value is null, this method stops here and returns current value.
Otherwise method returns getter valuepublic java.lang.Object getId()
getId
in interface DataItem.HasId