Class LocaleImpl
java.lang.Object
org.broadleafcommerce.common.locale.domain.LocaleImpl
- All Implemented Interfaces:
Serializable
,AdminMainEntity
,Locale
Created by jfischer
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BroadleafCurrency
protected Boolean
protected String
protected Locale
protected String
protected Boolean
Fields inherited from interface org.broadleafcommerce.common.admin.domain.AdminMainEntity
MAIN_ENTITY_NAME_PROPERTY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
If true then the country portion of the locale will be used when building the search index.int
hashCode()
void
setDefaultCurrency
(BroadleafCurrency defaultCurrency) void
setDefaultFlag
(Boolean defaultFlag) void
setFriendlyName
(String friendlyName) void
setLocaleCode
(String localeCode) void
setUseCountryInSearchIndex
(Boolean useInSearchIndex) Sets whether or not to use the country portion of the locale in the search index.
-
Field Details
-
localeCode
-
friendlyName
-
defaultFlag
-
defaultCurrency
-
useInSearchIndex
-
javaLocale
-
-
Constructor Details
-
LocaleImpl
public LocaleImpl()
-
-
Method Details
-
getLocaleCode
- Specified by:
getLocaleCode
in interfaceLocale
-
setLocaleCode
- Specified by:
setLocaleCode
in interfaceLocale
-
getFriendlyName
- Specified by:
getFriendlyName
in interfaceLocale
-
setFriendlyName
- Specified by:
setFriendlyName
in interfaceLocale
-
getDefaultFlag
- Specified by:
getDefaultFlag
in interfaceLocale
-
setDefaultFlag
- Specified by:
setDefaultFlag
in interfaceLocale
-
getDefaultCurrency
- Specified by:
getDefaultCurrency
in interfaceLocale
-
setDefaultCurrency
- Specified by:
setDefaultCurrency
in interfaceLocale
-
getUseCountryInSearchIndex
Description copied from interface:Locale
If true then the country portion of the locale will be used when building the search index. If null or false then only the language will be used.For example, if false, a locale of en_US will only index the results based on the root of "en".
- Specified by:
getUseCountryInSearchIndex
in interfaceLocale
- Returns:
-
setUseCountryInSearchIndex
Description copied from interface:Locale
Sets whether or not to use the country portion of the locale in the search index.- Specified by:
setUseCountryInSearchIndex
in interfaceLocale
-
getJavaLocale
- Specified by:
getJavaLocale
in interfaceLocale
-
equals
-
hashCode
public int hashCode() -
getMainEntityName
- Specified by:
getMainEntityName
in interfaceAdminMainEntity
- Returns:
- the display name of this entity for the admin screen
-