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 |
|---|---|
default void |
addReference(V model)
Deprecated.
Since 6.7, instances of
DataHandler should be stateless. |
default void |
deleteReference(D data)
Deprecated.
Since 6.7, instances of
DataHandler should be stateless. |
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.
|
default java.util.List<V> |
getValue()
Deprecated.
Since 6.7, instances of
DataHandler should be stateless (an empty should be returned). |
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.
|
default void |
moveReference(D data,
int index)
Deprecated.
Since 6.7, instances of
DataHandler should be stateless. |
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 object@Deprecated default java.util.List<V> getValue()
DataHandler should be stateless (an empty should be returned).java.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 value@Deprecated default void addReference(V model)
DataHandler should be stateless.model - - the model object@Deprecated default void moveReference(D data, int index)
DataHandler should be stateless.data - - the data objectindex - - the index to be inserted at@Deprecated default void deleteReference(D data)
DataHandler should be stateless.data - - the data objectCopyright © 2018 SAP SE. All Rights Reserved.