Class I18NMessage

    • Constructor Detail

      • I18NMessage

        public I18NMessage​(I18NLoggerProxy loggerProxy,
                           String messageId,
                           String entryId)
        Creates a new internationalized message with the given message and entry IDs. The logger proxy that can log the receiver is also supplied.
        Parameters:
        loggerProxy - The logger proxy.
        messageId - The message ID.
        entryId - The entry ID.
      • I18NMessage

        public I18NMessage​(I18NLoggerProxy loggerProxy,
                           String messageId)
        Creates a new internationalized message with the given message ID and the default entry ID. The logger proxy that can log the receiver is also supplied.
        Parameters:
        loggerProxy - The logger proxy.
        messageId - The message ID.
    • Method Detail

      • getLoggerProxy

        public I18NLoggerProxy getLoggerProxy()
        Returns the logger proxy that can log the receiver.
        Returns:
        The proxy.
      • getMessageProvider

        public I18NMessageProvider getMessageProvider()
        Returns the message provider that can map the receiver.
        Returns:
        The message provider.
      • getMessageId

        public String getMessageId()
        Returns the receiver's message ID.
        Returns:
        The ID.
      • getEntryId

        public String getEntryId()
        Returns the receiver's entry ID.
        Returns:
        The ID.
      • getParamCount

        public abstract int getParamCount()
        Returns the number of parameters the receiver expects.
        Returns:
        The number of parameters; -1 indicates a variable number.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object