Package es.situm.sdk.model
Class I18nString.Builder
java.lang.Object
es.situm.sdk.model.I18nString.Builder
- Enclosing class:
- I18nString
Allows creating a I18nString in a handier way.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionanyLanguage(String value) Add string to use as a default value, when there is no translation to some languagebuild()Add string translated into another language.Add string translated into another language.
-
Constructor Details
-
Builder
public Builder() -
Builder
-
Builder
-
-
Method Details
-
put
Add string translated into another language.- Parameters:
languageCode- language name in ISO 639-2 format. If is null, this method does nothing.value- translated into provided language. If is null, this method does nothing.- Returns:
- current
I18nString.Builderinstance
-
put
Add string translated into another language.- Parameters:
locale- itsLocale.getISO3Language()stands for the language of the string. If is null, this method does nothing.value- string translated into provided language. If is null, this method does nothing.- Returns:
- current
I18nString.Builderinstance
-
anyLanguage
Add string to use as a default value, when there is no translation to some language- Parameters:
value- default string value If is null, this method does nothing.- Returns:
- current
I18nString.Builderinstance
-
build
- Returns:
- new
I18nStringinstance
-