Class TMSMessageGetter


  • public final class TMSMessageGetter
    extends java.lang.Object
    Wrapper class used to retrieve TMS messages for the TAM Connector. The properties file used for the messages is named "tamconnector".
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getMessage​(TMSMsgId id)
      Get the globalized message for the given MessageID.
      static java.lang.String getMessage​(TMSMsgId id, java.lang.Object arg)
      Get the globalized message for the given MessageID.
      static java.lang.String getMessage​(TMSMsgId id, java.lang.Object[] args)
      Get the globalized message for the given MessageID.
      static java.lang.String getMessage​(java.lang.String id)
      Get the globalized message for the given String identifier.
      static java.lang.String getMessage​(java.lang.String id, java.lang.Object arg)
      Get the globalized message for the given String identifier.
      static java.lang.String getMessage​(java.lang.String id, java.lang.Object[] args)
      Get the globalized message for the given String identifier.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • MESSAGE_PROPERTIES_NAME

        public static final java.lang.String MESSAGE_PROPERTIES_NAME
        See Also:
        Constant Field Values
    • Method Detail

      • getMessage

        public static java.lang.String getMessage​(java.lang.String id,
                                                  java.lang.Object[] args)
        Get the globalized message for the given String identifier.
        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

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

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

        public static java.lang.String getMessage​(TMSMsgId id,
                                                  java.lang.Object[] args)
        Get the globalized message for the given MessageID.
        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

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

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