@Service @Lazy @DependentInitialisation(value=StartNewGameBean.class) public class ModelTranslations extends Object implements IModelTranslationService
| Modifier and Type | Field and Description |
|---|---|
private Locale |
locale |
private org.springframework.context.MessageSource |
messages |
| Constructor and Description |
|---|
ModelTranslations() |
| Modifier and Type | Method and Description |
|---|---|
String |
getEndOfWeek(java.time.LocalDateTime date)
Retrieve the date of the end of the week in the form {Day of month}.
|
private java.time.LocalDateTime |
getEndOfWeekInternal(java.time.LocalDateTime date)
Retrieve the date of the of the Sunday of last week
|
String |
getLocalDisplayDistinctArticle(boolean male,
boolean uppercase) |
String |
getLocalDisplayName(EShipType type) |
String |
getLocalDisplayName(ESocialRank rank) |
String |
getLocalDisplayName(EWare ware)
Retrieve the localized display name for
id. |
String |
getLocalDisplayName(EWeapon weapon)
Retrieve the localized display name for
id. |
String |
getLocalDisplayName(IBuilding building) |
String |
getLocalDisplayName(ICareer career) |
String |
getLocalDisplayNameWithArticle(EShipType type,
boolean upperCaseArticle) |
String |
getStartOfWeek(java.time.LocalDateTime date)
Retrieve the date of the start of the week in the form {Day of month}.
|
private java.time.LocalDateTime |
getStartOfWeekInternal(java.time.LocalDateTime date)
Retrieve the date of the start of the last week
|
String |
toDisplayString(int day,
int month,
int year) |
String |
toDisplayString(java.time.LocalDateTime date)
Create a string representation for the user interface of the
form {Day of month}.
|
private String |
toDisplayStringLongFormat(int day,
int month,
int year) |
String |
toDisplayStringLongFormat(java.time.LocalDateTime date)
Create a string representation for the user interface of the
form {Day of month}.
|
String |
toShortDate(java.time.LocalDateTime c)
Convert the date into the form {Day in month}.
|
@Autowired private Locale locale
@Autowired @Qualifier(value="messageSource") private org.springframework.context.MessageSource messages
public String getLocalDisplayName(EWeapon weapon)
id.weapon - ennumerationpublic String getLocalDisplayName(EWare ware)
id.ware - public String getLocalDisplayName(ESocialRank rank)
public String getLocalDisplayNameWithArticle(EShipType type, boolean upperCaseArticle)
public String getLocalDisplayDistinctArticle(boolean male, boolean uppercase)
public String toShortDate(java.time.LocalDateTime c)
c - private java.time.LocalDateTime getEndOfWeekInternal(java.time.LocalDateTime date)
public String getEndOfWeek(java.time.LocalDateTime date)
public String toDisplayString(int day, int month, int year)
private String toDisplayStringLongFormat(int day, int month, int year)
public String toDisplayString(java.time.LocalDateTime date)
toDisplayString in interface IModelTranslationServicedate - which should be converted to a string.public String toDisplayStringLongFormat(java.time.LocalDateTime date)
public String getStartOfWeek(java.time.LocalDateTime date)
private java.time.LocalDateTime getStartOfWeekInternal(java.time.LocalDateTime date)
Copyright © 2011-2018 Sahits GmbH. All Rights Reserved.