Class Msg

java.lang.Object
org.reldb.toolbox.il8n.Msg

public class Msg extends Object
Represent a translatable message specified as a parametrised format string per java.text.MessageFormat.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Format specification per java.text.MessageFormat.
    Location of this message.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Msg​(String formatSpec)
    Define a format specification per java.text.MessageFormat.
    Msg​(String formatSpec, Class<?> location)
    Define a format specification per java.text.MessageFormat.
    Msg​(String formatSpec, String location)
    Define a format specification per java.text.MessageFormat.
  • Method Summary

    Modifier and Type
    Method
    Description
    static Stream<Msg>
    Get a Stream of all registered FormatS.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • formatSpec

      public final String formatSpec
      Format specification per java.text.MessageFormat.
    • location

      public final String location
      Location of this message.
  • Constructor Details

    • Msg

      public Msg(String formatSpec, String location)
      Define a format specification per java.text.MessageFormat.
      Parameters:
      formatSpec - Format specification per java.text.MessageFormat.
      location - Location of this message.
    • Msg

      public Msg(String formatSpec, Class<?> location)
      Define a format specification per java.text.MessageFormat.
      Parameters:
      formatSpec - Format specification per java.text.MessageFormat.
      location - Location of this message.
    • Msg

      public Msg(String formatSpec)
      Define a format specification per java.text.MessageFormat.
      Parameters:
      formatSpec - Format specification per java.text.MessageFormat.
  • Method Details

    • getMsgs

      public static Stream<Msg> getMsgs()
      Get a Stream of all registered FormatS.
      Returns:
      Stream of Format.
    • toString

      public String toString()
      Overrides:
      toString in class Object