MessageImpl (Lucene 10.5.0 queryparser API)
Description: declaration: package: org.apache.lucene.queryparser.flexible.messages, class: MessageImpl

Package org.apache.lucene.queryparser.flexible.messages

# Class MessageImpl

java.lang.Object
org.apache.lucene.queryparser.flexible.messages.MessageImpl

All Implemented Interfaces:
  `Message`

public class MessageImpl extends Object implements Message
Default implementation of Message interface. For Native Language Support (NLS), system of software internationalization.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `MessageImpl(String key)`
  `MessageImpl(String key, Object... args)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Object[]`
  `getArguments()`
  `String`
  `getKey()`
  `String`
  `getLocalizedMessage()`
  `String`
  `getLocalizedMessage(Locale locale)`
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### MessageImpl

    public MessageImpl(String key)

  - ### MessageImpl

    public MessageImpl(String key, Object... args)

- ## Method Details

  - ### getArguments

    public Object[] getArguments()
    Specified by:
      `getArguments` in interface `Message`

  - ### getKey

    public String getKey()
    Specified by:
      `getKey` in interface `Message`

  - ### getLocalizedMessage

    public String getLocalizedMessage()
    Specified by:
      `getLocalizedMessage` in interface `Message`

  - ### getLocalizedMessage

    public String getLocalizedMessage(Locale locale)
    Specified by:
      `getLocalizedMessage` in interface `Message`

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`