D - - the type of the item dataV - - the type of the item valuepublic interface DataHandler<D extends AbstractEditorData,V>
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<?> |
getAttributeType(D data,
java.lang.String attributeName)
Extracts an attribute class from a specific editor data object.
|
java.lang.Object |
getAttributeValue(D data,
java.lang.String attributeName)
Extracts an attribute value from a specific editor data object.
|
V |
getItemValue(D data)
Returns the value for a single item.
|
java.lang.String |
getTypeCode()
Returns the type code for the model.
|
java.util.Collection<V> |
getValue(<any> data)
Returns the value.
|
<any> |
loadData(java.util.Collection<V> initialValue,
SearchResultData searchResult,
java.util.Map<java.lang.String,java.lang.Object> parameters)
Initializes the data handler with new data.
|
void |
setAttributeValue(D data,
java.lang.String attributeName,
java.lang.Object attributeValue)
Sets an attribute value to a specific data object.
|
java.lang.String getTypeCode()
<any> loadData(java.util.Collection<V> initialValue, SearchResultData searchResult, java.util.Map<java.lang.String,java.lang.Object> parameters)
initialValue - - the initial valuesearchResult - - the search resultparameters - - the data handler parametersjava.util.Collection<V> getValue(<any> data)
data - - the data objectV getItemValue(D data)
data - - the data objectjava.lang.Class<?> getAttributeType(D data, java.lang.String attributeName)
data - - the data objectattributeName - - the attribute namejava.lang.Object getAttributeValue(D data, java.lang.String attributeName)
data - - the data objectattributeName - - the attribute namevoid setAttributeValue(D data, java.lang.String attributeName, java.lang.Object attributeValue)
data - - the data object.attributeName - - the attribute nameattributeValue - - new attribute valueCopyright © 2018 SAP SE. All Rights Reserved.