Interface Messages

  • All Known Implementing Classes:
    DefaultMessagesImpl

    public interface Messages
    Represents an I18N message strings that can be substituted with runtime context information.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getMessage​(java.lang.String id)
      Get the globalized message for the given id.
      java.lang.String getMessage​(java.lang.String id, java.lang.Object[] args)
      Get the globalized message for the given id.
    • Method Detail

      • getMessage

        java.lang.String getMessage​(java.lang.String id,
                                    java.lang.Object[] args)
        Get the globalized message for the given id.
        Parameters:
        id - Identifier of the requested string.
        args - Substitutable arguments to be inserted into the result string.
        Returns:
        The message associated with the id. The args will be substitued into the result string.
      • getMessage

        java.lang.String getMessage​(java.lang.String id)
        Get the globalized message for the given id.
        Parameters:
        id - Identifier of the requested string.
        Returns:
        The message associated with the id.