Interface IString

All Known Implementing Classes:
I18nText, Text

public interface IString
Used to support translations. Use I18nText for translatable strings, and Text for non-translatable strings.
  • Method Details

    • getText

      @Nonnull String getText()
      Returns:
      the original base text without any translation or token replacement
    • getTokens

      @Nonnull List<Object> getTokens()
      Returns:
      the tokens. Either List<String> or List<IString>
    • getType

      @Nonnull StringType getType()
      Returns:
      whether this IString is translatable or not
    • toTextList

      @Nonnull static IString.IStringList toTextList(@Nonnull Collection<String> input)
    • toI18nTextList

      @Nonnull static IString.IStringList toI18nTextList(@Nonnull Collection<String> input)
    • getTextWithTokens

      @Nonnull default String getTextWithTokens()
      Returns:
      the text with tokens replaced, but without any translation