com.martealert
Class martealertGlobals

java.lang.Object
  extended bycom.martealert.martealertGlobals

public class martealertGlobals
extends java.lang.Object


Field Summary
protected static java.lang.String[] allSupportedLanguages
           
protected static java.lang.String currentLanguage
          The language that is used now
static boolean DEBUG
           
static java.lang.String[][] languages
           
static java.util.Locale locale
          The locale that is used now
protected static java.util.Hashtable resourceList
           
static java.lang.String sourceLanguage
           
protected static java.lang.String[] supportedLanguages
           
static java.lang.String timeStamp
           
 
Constructor Summary
martealertGlobals()
           
 
Method Summary
static java.lang.String[] getAllSupportedLanguages()
           
static java.lang.String getCurrentLanguage()
           
static java.lang.String getResource(java.lang.String baseName, java.lang.String key)
          Get a String resource from a resourcebundle.
static int getResourceInt(java.lang.String baseName, java.lang.String key)
          Get a 'int' resource from a resourcebundle.
static java.lang.String[] getSupportedLanguages()
           
 java.lang.String getValue(java.lang.String key)
           
 boolean hasKey(java.lang.String key)
           
static boolean hasKey(java.lang.String key, java.lang.String sourceLanguage)
           
static java.lang.String i18n(java.lang.String key)
           
static java.lang.String i18n(java.lang.String key, java.lang.Object[] params)
           
static void setLanguage(java.lang.String language)
          Set the language as defined in the documentation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG

public static final boolean DEBUG

timeStamp

public static java.lang.String timeStamp

languages

public static java.lang.String[][] languages

locale

public static java.util.Locale locale
The locale that is used now


sourceLanguage

public static java.lang.String sourceLanguage

allSupportedLanguages

protected static java.lang.String[] allSupportedLanguages

supportedLanguages

protected static java.lang.String[] supportedLanguages

currentLanguage

protected static java.lang.String currentLanguage
The language that is used now


resourceList

protected static java.util.Hashtable resourceList
Constructor Detail

martealertGlobals

public martealertGlobals()
Method Detail

getValue

public java.lang.String getValue(java.lang.String key)

i18n

public static java.lang.String i18n(java.lang.String key)

i18n

public static java.lang.String i18n(java.lang.String key,
                                    java.lang.Object[] params)

hasKey

public boolean hasKey(java.lang.String key)

hasKey

public static boolean hasKey(java.lang.String key,
                             java.lang.String sourceLanguage)

getResource

public static java.lang.String getResource(java.lang.String baseName,
                                           java.lang.String key)
                                    throws java.util.MissingResourceException
Get a String resource from a resourcebundle.

Parameters:
baseName - String The name of the resource class ex.
key - String The keyword to find
Returns:
String
Throws:
java.util.MissingResourceException

getResourceInt

public static int getResourceInt(java.lang.String baseName,
                                 java.lang.String key)
                          throws java.util.MissingResourceException
Get a 'int' resource from a resourcebundle.

Parameters:
baseName - String The name of the resource class ex.
key - String The keyword to find
Returns:
int
Throws:
java.util.MissingResourceException

setLanguage

public static void setLanguage(java.lang.String language)
Set the language as defined in the documentation. We translate the name to a 'controlled' Java Locale.

Parameters:
language - String The language as defined in the documentation english, french, danish etc.
Returns:
void

getSupportedLanguages

public static java.lang.String[] getSupportedLanguages()

getAllSupportedLanguages

public static java.lang.String[] getAllSupportedLanguages()

getCurrentLanguage

public static java.lang.String getCurrentLanguage()


e-REdING. Biblioteca de la Escuela Superior de Ingenieros de Sevilla.


DISEÑO DE UNA PLATAFORMA DE GESTIÓN Y MONITORIZACIÓN DE EVENTOS DE SEGURIDAD

: Galera Ruiz, Alejandro David
: Ingeniería Telecomunicación
Contenido del proyecto: