de.smartics.maven.util.eclipse
Class Messages

Package class diagram package Messages
java.lang.Object
  extended by de.smartics.maven.util.eclipse.Messages

public final class Messages
     
     
extends Object

This is a simple wrapper for the messages of this package.

Author:
Robert Reiner

Method Summary
static String getString(String key)
          Returns the message for the given key.
static String getString(String key, Object param)
          Convenience method if there is just one parameter.
static String getString(String key, Object[] params)
          Returns the message for the given key.
static String getString(String key, Object param1, Object param2)
          Convenience method if there is just two parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getString

public static String getString(String key)
Returns the message for the given key.

Parameters:
key - the key to lookup the localized message.
Returns:
the localized message.

getString

public static String getString(String key,
                               Object[] params)
Returns the message for the given key.

Parameters:
key - the key to lookup the localized message.
params - the parameter to the message.
Returns:
the localized message.

getString

public static String getString(String key,
                               Object param)
Convenience method if there is just one parameter.

Parameters:
key - the key to lookup the localized message.
param - the parameter to the message.
Returns:
the localized message.

getString

public static String getString(String key,
                               Object param1,
                               Object param2)
Convenience method if there is just two parameters.

Parameters:
key - the key to lookup the localized message.
param1 - the first parameter to the message.
param2 - the second parameter to the message.
Returns:
the localized message.


Copyright © 2006-2012 Kronseder & Reiner GmbH - smartics. All Rights Reserved.