public class DefaultDynamicAttributesProvider extends Object implements DynamicAttributesProvider, Serializable
DynamicAttributesProvider interface.| Constructor and Description |
|---|
DefaultDynamicAttributesProvider(Map<String,DynamicAttributeHandler> handlers) |
| Modifier and Type | Method and Description |
|---|---|
Object |
get(AbstractItemModel model,
String attribute)
|
Object |
getLocalized(AbstractItemModel model,
String attribute,
Locale loc)
|
boolean |
isDynamic(String attributeName)
Returns information whether given attribute is dynamic or not
|
void |
set(AbstractItemModel model,
String attribute,
Object value)
|
void |
setLocalized(AbstractItemModel model,
String attribute,
Object value,
Locale loc)
|
public DefaultDynamicAttributesProvider(Map<String,DynamicAttributeHandler> handlers)
public Object get(AbstractItemModel model, String attribute)
DynamicAttributeHandler.get(de.hybris.platform.servicelayer.model.AbstractItemModel)
.get in interface DynamicAttributesProviderattribute - the attribute which is declared as dynamic.public void set(AbstractItemModel model, String attribute, Object value)
DynamicAttributeHandler.set(de.hybris.platform.servicelayer.model.AbstractItemModel, Object)
.set in interface DynamicAttributesProviderattribute - the attribute which is declared as dynamic.value - the value which is passed to attribute handler.public Object getLocalized(AbstractItemModel model, String attribute, Locale loc)
DynamicLocalizedAttributeHandler.get(de.hybris.platform.servicelayer.model.AbstractItemModel, java.util.Locale)
.getLocalized in interface DynamicAttributesProviderattribute - the attribute which is declared as dynamic.loc - the locale for the given attributepublic void setLocalized(AbstractItemModel model, String attribute, Object value, Locale loc)
DynamicLocalizedAttributeHandler.set(de.hybris.platform.servicelayer.model.AbstractItemModel, Object, java.util.Locale)
.setLocalized in interface DynamicAttributesProviderattribute - the attribute which is declared as dynamic.value - the value which is passed to attribute handler.loc - the locale for the given attributepublic boolean isDynamic(String attributeName)
DynamicAttributesProviderisDynamic in interface DynamicAttributesProviderattributeName - attribute nameCopyright © 2017 SAP SE. All Rights Reserved.