org.appng.api

## Interface MessageParam

- All Known Implementing Classes:
    ApplicationException, BusinessException, NoSuchRepositoryException, NoSuchSiteException

      public interface MessageParam

  A `MessageParam` provides a message key and optionally some message arguments which can be used when formatting a message with `MessageFormat.format(String, Object...)`. The purpose is to make it easier to provide end-user friendly messages.
  Author:
    Matthias Müller

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `Object[]` | `getMessageArgs()` Returns the arguments for this message in order to be used with `MessageFormat.format(String, Object...)`
    `String` | `getMessageKey()` Returns the key for the message in order to retrieve the real message from a `ResourceBundle`.

- - ### Method Detail

    - #### getMessageKey

          String getMessageKey()

      Returns the key for the message in order to retrieve the real message from a `ResourceBundle`.
      Returns:
        the key for this message
      See Also:
        `ResourceBundle.getString(String)`

    - #### getMessageArgs

          Object[] getMessageArgs()

      Returns the arguments for this message in order to be used with `MessageFormat.format(String, Object...)`
      Returns:
        the arguments for the message

Copyright © 2011–2023 aiticon GmbH. All rights reserved.