Class ChineseNameWithTitleFormatStrategy
- java.lang.Object
-
- de.hybris.platform.addressservices.strategies.impl.ChineseNameWithTitleFormatStrategy
-
- All Implemented Interfaces:
NameWithTitleFormatStrategy
public class ChineseNameWithTitleFormatStrategy extends java.lang.Object implements NameWithTitleFormatStrategy
-
-
Constructor Summary
Constructors Constructor Description ChineseNameWithTitleFormatStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancontainsChineseCharacter(java.lang.String s)CommonI18NServicegetCommonI18NService()java.lang.StringgetFullnameWithTitle(java.lang.String fullname, java.lang.String title)get full name with title namejava.lang.StringgetFullnameWithTitle(java.lang.String firstname, java.lang.String lastname, java.lang.String title)get full name with title namejava.lang.StringgetFullnameWithTitleForISOCode(java.lang.String fullname, java.lang.String title, java.lang.String isocode)get full name with title namejava.lang.StringgetFullnameWithTitleForISOCode(java.lang.String firstname, java.lang.String lastname, java.lang.String title, java.lang.String isocode)protected UserServicegetUserService()protected booleanisNotReverent(java.lang.String titleName, java.lang.String isocode)if title is reverent, should be in the front of fullnamevoidsetCommonI18NService(CommonI18NService commonI18NService)voidsetUserService(UserService userService)
-
-
-
Method Detail
-
getUserService
protected UserService getUserService()
-
setUserService
public void setUserService(UserService userService)
-
getCommonI18NService
public CommonI18NService getCommonI18NService()
-
setCommonI18NService
public void setCommonI18NService(CommonI18NService commonI18NService)
-
getFullnameWithTitle
public java.lang.String getFullnameWithTitle(java.lang.String fullname, java.lang.String title)Description copied from interface:NameWithTitleFormatStrategyget full name with title name- Specified by:
getFullnameWithTitlein interfaceNameWithTitleFormatStrategy- Returns:
- full name with title name
-
getFullnameWithTitle
public java.lang.String getFullnameWithTitle(java.lang.String firstname, java.lang.String lastname, java.lang.String title)Description copied from interface:NameWithTitleFormatStrategyget full name with title name- Specified by:
getFullnameWithTitlein interfaceNameWithTitleFormatStrategy- Returns:
- full name with title name
-
getFullnameWithTitleForISOCode
public java.lang.String getFullnameWithTitleForISOCode(java.lang.String fullname, java.lang.String title, java.lang.String isocode)Description copied from interface:NameWithTitleFormatStrategyget full name with title name- Specified by:
getFullnameWithTitleForISOCodein interfaceNameWithTitleFormatStrategy- Returns:
- full name with title name
-
getFullnameWithTitleForISOCode
public java.lang.String getFullnameWithTitleForISOCode(java.lang.String firstname, java.lang.String lastname, java.lang.String title, java.lang.String isocode)- Specified by:
getFullnameWithTitleForISOCodein interfaceNameWithTitleFormatStrategy- Returns:
- full name with title name
-
containsChineseCharacter
protected boolean containsChineseCharacter(java.lang.String s)
-
isNotReverent
protected boolean isNotReverent(java.lang.String titleName, java.lang.String isocode)if title is reverent, should be in the front of fullname- Parameters:
isocode-- Returns:
-
-