com.elasticpath.domain.misc
Interface LocalizedProperties

All Superinterfaces:
EpDomain, Persistence, java.io.Serializable, ValueObject
All Known Implementing Classes:
LocalizedPropertiesImpl

public interface LocalizedProperties
extends ValueObject

Represents a group of localized properties. Any DOs can aggregate it to have a group of localized properties. Example: Brand.


Method Summary
 java.lang.String getValue(java.lang.String propertyName, java.util.Locale locale)
          Returns the value of the given property and locale.
 java.lang.String getValueWithoutFallBack(java.lang.String propertyName, java.util.Locale locale)
          Returns the value of the given property and locale.
 void setValue(java.lang.String propertyName, java.util.Locale locale, java.lang.String value)
          Sets the given value with the given property and locale.
 
Methods inherited from interface com.elasticpath.domain.Persistence
executeBeforePersistAction, getUidPk, isPersistent, setDefaultValues, setUidPk
 
Methods inherited from interface com.elasticpath.domain.EpDomain
getElasticPath, setElasticPath
 

Method Detail

getValue

java.lang.String getValue(java.lang.String propertyName,
                          java.util.Locale locale)
Returns the value of the given property and locale. If the value of the given locale doesn't exist. It will fall back the value of the system default locale. If the value still doesn't exist, return null.

Parameters:
propertyName - the property name
locale - the locale
Returns:
the value of the given property and locale.

getValueWithoutFallBack

java.lang.String getValueWithoutFallBack(java.lang.String propertyName,
                                         java.util.Locale locale)
Returns the value of the given property and locale. If the value doesn't exist, return null.

Parameters:
propertyName - the property name
locale - the locale
Returns:
the value of the given property and locale.

setValue

void setValue(java.lang.String propertyName,
              java.util.Locale locale,
              java.lang.String value)
Sets the given value with the given property and locale.

Parameters:
propertyName - the property name
locale - the locale
value - the value to set