Interface DynamicAttributesProvider
-
- All Known Implementing Classes:
DefaultDynamicAttributesProvider
public interface DynamicAttributesProviderProvider responsible for delegating calls on model setter/getter for dynamic attributes to declared attribute handlers.- See Also:
DynamicAttributeHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Objectget(AbstractItemModel model, java.lang.String attribute)java.lang.ObjectgetLocalized(AbstractItemModel model, java.lang.String attribute, java.util.Locale loc)booleanisDynamic(java.lang.String attributeName)Returns information whether given attribute is dynamic or notvoidset(AbstractItemModel model, java.lang.String attribute, java.lang.Object value)voidsetLocalized(AbstractItemModel model, java.lang.String attribute, java.lang.Object value, java.util.Locale loc)
-
-
-
Method Detail
-
set
void set(AbstractItemModel model, java.lang.String attribute, java.lang.Object value)
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
java.lang.Object get(AbstractItemModel model, java.lang.String attribute)
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
void setLocalized(AbstractItemModel model, java.lang.String attribute, java.lang.Object value, java.util.Locale loc)
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
java.lang.Object getLocalized(AbstractItemModel model, java.lang.String attribute, java.util.Locale loc)
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
boolean isDynamic(java.lang.String attributeName)
Returns information whether given attribute is dynamic or not- Parameters:
attributeName- attribute name- Returns:
- true if attribute is dynamic, false otherwise
-
-