Class DefaultDynamicAttributesProvider
java.lang.Object
de.hybris.platform.servicelayer.internal.model.attribute.impl.DefaultDynamicAttributesProvider
- All Implemented Interfaces:
DynamicAttributesProvider,Serializable
public class DefaultDynamicAttributesProvider
extends Object
implements DynamicAttributesProvider, Serializable
Default implementation of
DynamicAttributesProvider interface.- See Also:
-
Constructor Summary
ConstructorsConstructorDescription -
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)
-
Constructor Details
-
DefaultDynamicAttributesProvider
-
-
Method Details
-
get
Delegates call toDynamicAttributeHandler.get(de.hybris.platform.servicelayer.model.AbstractItemModel).- Specified by:
getin interfaceDynamicAttributesProviderattribute- the attribute which is declared as dynamic.- Returns:
- the computed object returned from attribute handler.
-
set
Delegates call toDynamicAttributeHandler.set(de.hybris.platform.servicelayer.model.AbstractItemModel, Object).- Specified by:
setin interfaceDynamicAttributesProviderattribute- the attribute which is declared as dynamic.value- the value which is passed to attribute handler.
-
getLocalized
Delegates call toDynamicLocalizedAttributeHandler.get(de.hybris.platform.servicelayer.model.AbstractItemModel, java.util.Locale).- Specified by:
getLocalizedin interfaceDynamicAttributesProviderattribute- the attribute which is declared as dynamic.loc- the locale for the given attribute- Returns:
- the computed object returned from attribute handler.
-
setLocalized
Delegates call toDynamicLocalizedAttributeHandler.set(de.hybris.platform.servicelayer.model.AbstractItemModel, Object, java.util.Locale).- Specified by:
setLocalizedin interfaceDynamicAttributesProviderattribute- the attribute which is declared as dynamic.value- the value which is passed to attribute handler.loc- the locale for the given attribute
-
isDynamic
Description copied from interface:DynamicAttributesProviderReturns information whether given attribute is dynamic or not- Specified by:
isDynamicin interfaceDynamicAttributesProvider- Parameters:
attributeName- attribute name- Returns:
- true if attribute is dynamic, false otherwise
-