cz.zcu.fav.kiv.editor.controller.resource
Class ErrorResourceController

java.lang.Object
  extended by cz.zcu.fav.kiv.editor.controller.resource.ErrorResourceController

public class ErrorResourceController
extends java.lang.Object

The ErrorResourceController class contains methods for loading error text resources.

Version:
1.0, 05/2007
Author:
Marta Vaclavikova

Constructor Summary
ErrorResourceController()
          Initializes a newly created ErrorResourceController with error resource bundle.
 
Method Summary
static java.lang.String getMessage(java.lang.String key)
          Gets the error text resource for the input key.
static java.lang.String getMessage(java.lang.String key, java.lang.Object... args)
          Gets the error text resource for the input key and arguments.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorResourceController

public ErrorResourceController()
Initializes a newly created ErrorResourceController with error resource bundle.

Method Detail

getMessage

public static java.lang.String getMessage(java.lang.String key)
Gets the error text resource for the input key.

Parameters:
key - the key of the error text resource.
Returns:
the error text resource for the input key.

getMessage

public static java.lang.String getMessage(java.lang.String key,
                                          java.lang.Object... args)
Gets the error text resource for the input key and arguments.

Parameters:
key - the key of the error text resource.
args - the arguments of the error text resource.
Returns:
the error text resource for the input key and arguments.