org.infai.emo.matcher.editor.util
Class ModelMatcherLanguages

java.lang.Object
  extended by org.infai.emo.matcher.editor.util.ModelMatcherLanguages

public final class ModelMatcherLanguages
extends java.lang.Object

This class helps translating the labels of the GUI.

Version:
1.0.0
Author:
Stanley Hillner

Field Summary
private static java.lang.String BUNDLE_NAME_ENGLISH
          The key for the language-specific property-file (English language).
private static java.lang.String BUNDLE_NAME_GERMAN
          The key for the language-specific property-file (German language).
private static java.lang.String BUNDLE_NAME_SPANISH
          The key for the language-specific property-file (Spanish language).
private static java.util.ResourceBundle RESOURCE_BUNDLE_ENGLISH
          The resource-bundle for the English language-properties.
private static java.util.ResourceBundle RESOURCE_BUNDLE_GERMAN
          The resource-bundle for the German language-properties.
private static java.util.ResourceBundle RESOURCE_BUNDLE_SPANISH
          The resource-bundle for the Spanish language-properties.
 
Constructor Summary
ModelMatcherLanguages()
           
 
Method Summary
static java.lang.String getString(java.lang.String key, java.lang.String language)
          Method gets a language-specific string for the given language-key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUNDLE_NAME_ENGLISH

private static final java.lang.String BUNDLE_NAME_ENGLISH
The key for the language-specific property-file (English language).

See Also:
Constant Field Values

BUNDLE_NAME_GERMAN

private static final java.lang.String BUNDLE_NAME_GERMAN
The key for the language-specific property-file (German language).

See Also:
Constant Field Values

BUNDLE_NAME_SPANISH

private static final java.lang.String BUNDLE_NAME_SPANISH
The key for the language-specific property-file (Spanish language).

See Also:
Constant Field Values

RESOURCE_BUNDLE_ENGLISH

private static final java.util.ResourceBundle RESOURCE_BUNDLE_ENGLISH
The resource-bundle for the English language-properties.


RESOURCE_BUNDLE_GERMAN

private static final java.util.ResourceBundle RESOURCE_BUNDLE_GERMAN
The resource-bundle for the German language-properties.


RESOURCE_BUNDLE_SPANISH

private static final java.util.ResourceBundle RESOURCE_BUNDLE_SPANISH
The resource-bundle for the Spanish language-properties.

Constructor Detail

ModelMatcherLanguages

public ModelMatcherLanguages()
Method Detail

getString

public static java.lang.String getString(java.lang.String key,
                                         java.lang.String language)
Method gets a language-specific string for the given language-key.
If the language-key is not known the method will return the given text in English language.
If the key for the text is not known the method will return an error-String containing the false key.

Parameters:
key - the key for the contents that shall be returned.
language - the language that is requested.
Returns:
the requested text in the requested language.
See Also:
Constants