Class AbstractMessages

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected  locale)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      boolean  key)
      Returns true if the bundle contains the named key.
       key, ... args)
      Convenience for accessing a formatter and formatting a localized message with arguments.
       key)
      Returns the localized message for the given key.
      MessageFormatter  key)
      Returns a formatter for the message, which can be used to substitute arguments (as per ).
      protected abstract  key)
      Invoked to provide the value for a particular key.
      • Methods inherited from class java.lang.

        , , , , , , , , , ,
      • Methods inherited from interface org.apache.tapestry5.commons.Messages

        getKeys
    • Constructor Detail

      • AbstractMessages

        protected  locale)
    • Method Detail

      • valueForKey

        protected abstract   key)
        Invoked to provide the value for a particular key. This may be invoked multiple times even for the same key. The implementation should ignore the case of the key.
        Parameters:
        key - the key to obtain a value for (case insensitive)
        Returns:
        the value for the key, or null if this instance can not provide the value
      • contains

        public boolean  key)
        Description copied from interface: Messages
        Returns true if the bundle contains the named key.
        Specified by:
        contains in interface Messages
      • get

        public   key)
        Description copied from interface: Messages
        Returns the localized message for the given key. If catalog does not contain such a key, then a modified version of the key is returned (converted to upper case and enclosed in brackets).
        Specified by:
        get in interface Messages
        Returns:
        localized message for key, or placeholder
      • getFormatter

        public  key)
        Description copied from interface: Messages
        Returns a formatter for the message, which can be used to substitute arguments (as per ).
        Specified by:
        getFormatter in interface Messages
        Returns:
        formattable object
      • format

        public   key,
                             ... args)
        Description copied from interface: Messages
        Convenience for accessing a formatter and formatting a localized message with arguments.
        Specified by:
        format in interface Messages