Interface DynamicAttributesProvider
- All Known Implementing Classes:
DefaultDynamicAttributesProvider
public interface DynamicAttributesProvider
Provider responsible for delegating calls on model setter/getter for dynamic attributes to declared attribute
handlers.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionget(AbstractItemModel model, String attribute) getLocalized(AbstractItemModel model, String attribute, Locale loc) booleanReturns information whether given attribute is dynamic or notvoidset(AbstractItemModel model, String attribute, Object value) voidsetLocalized(AbstractItemModel model, String attribute, Object value, Locale loc)
-
Method Details
-
set
Delegates call toDynamicAttributeHandler.set(de.hybris.platform.servicelayer.model.AbstractItemModel, Object).- Parameters:
attribute- the attribute which is declared as dynamic.value- the value which is passed to attribute handler.
-
get
Delegates call toDynamicAttributeHandler.get(de.hybris.platform.servicelayer.model.AbstractItemModel).- Parameters:
attribute- the attribute which is declared as dynamic.- Returns:
- the computed object returned from attribute handler.
-
setLocalized
Delegates call toDynamicLocalizedAttributeHandler.set(de.hybris.platform.servicelayer.model.AbstractItemModel, Object, java.util.Locale).- Parameters:
attribute- the attribute which is declared as dynamic.value- the value which is passed to attribute handler.loc- the locale for the given attribute
-
getLocalized
Delegates call toDynamicLocalizedAttributeHandler.get(de.hybris.platform.servicelayer.model.AbstractItemModel, java.util.Locale).- Parameters:
attribute- the attribute which is declared as dynamic.loc- the locale for the given attribute- Returns:
- the computed object returned from attribute handler.
-
isDynamic
Returns information whether given attribute is dynamic or not- Parameters:
attributeName- attribute name- Returns:
- true if attribute is dynamic, false otherwise
-