Class HasTextWithArgs

java.lang.Object
com.helger.commons.text.HasTextWithArgs
All Implemented Interfaces:
IHasText

@Immutable public class HasTextWithArgs extends Object implements IHasText
A special implementation of IHasText that encapsulates arguments to be put into the message.
Since:
8.5.2
Author:
Philip Helger
  • Constructor Details

  • Method Details

    • getParentText

      @Nonnull public IHasText getParentText()
    • getAllArgs

      Get all arguments from the constructor.
      Returns:
      a copy of all arguments. Neither null nor empty-
    • getText

      @Nullable public String getText(@Nonnull Locale aContentLocale)
      Description copied from interface: IHasText
      Get the text specific for the passed locale. The implementation class MAY add locale-generalisation when resolving the text ("de_DE" => "de" => default).
      Specified by:
      getText in interface IHasText
      Parameters:
      aContentLocale - The locale to use. May not be null.
      Returns:
      null if no text for the given locale was found.
    • toString

      public String toString()
      Overrides:
      toString in class Object