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 to replace into the text/translated text
    • getType

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

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