tico.environment
Class TEnvironment
java.lang.Object
tico.environment.TEnvironment
- All Implemented Interfaces:
- java.util.Comparator
public class TEnvironment
- extends java.lang.Object
- implements java.util.Comparator
Method Summary |
int |
compare(java.lang.Object o1,
java.lang.Object o2)
|
static boolean |
environmentExists(java.lang.String environment)
Determines if exists the environment file. |
static java.util.Vector |
getAllKeys()
|
static java.lang.String |
getCode(java.lang.String key)
Returns the string of the specified key in the current
environment resource bundle. |
static java.util.Map |
getEnvironment()
Generates a map that contains all the environment files of
entorno directory and its corresponding language names. |
TResourceBundle |
getEnvironmentBundle()
|
static void |
initEnvironment(java.lang.String environment)
Inits the environment file loading the file of the specified
environment to the ENVIRONMENT_BUNDLE . |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
equals |
TEnvironment
public TEnvironment()
initEnvironment
public static void initEnvironment(java.lang.String environment)
throws java.io.IOException
- Inits the environment file loading the file of the specified
environment
to the ENVIRONMENT_BUNDLE
.
- Parameters:
environment
- The current environment
- Throws:
java.io.IOException
environmentExists
public static boolean environmentExists(java.lang.String environment)
- Determines if exists the
environment
file.
- Parameters:
environment
- The environment
file to check
- Returns:
- true if the
environment
file exists
getEnvironment
public static java.util.Map getEnvironment()
- Generates a
map
that contains all the environment files of
entorno directory and its corresponding language names.
- Returns:
- The generated
map
getCode
public static java.lang.String getCode(java.lang.String key)
- Returns the string of the specified
key
in the current
environment resource bundle.
- Parameters:
key
- The specified key
- Returns:
- The string of the specified
key
getEnvironmentBundle
public TResourceBundle getEnvironmentBundle()
getAllKeys
public static java.util.Vector getAllKeys()
compare
public int compare(java.lang.Object o1,
java.lang.Object o2)
- Specified by:
compare
in interface java.util.Comparator