LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.misc
Class LyFiles

java.lang.Object
  extended by leon.misc.LyResourceBundle
      extended by leon.misc.LyFiles

public class LyFiles
extends LyResourceBundle

This class is used to manage the resources file of an application. It is based on the LyResourceBundle mechanism.


Field Summary
static java.lang.String __VERSION
           
 
Fields inherited from class leon.misc.LyResourceBundle
PACKAGE_DIR, PROPERTIES_DIR, UPPER_CASE_KEYS_ONLY
 
Constructor Summary
LyFiles(LyEnvironment environment)
          Constructor with a given environment.
LyFiles(LyEnvironment environment, java.lang.String name)
          Constructor with a given environment and name.
LyFiles(LyEnvironment environment, java.lang.String name, java.lang.String skin)
          Constructor with a given environment and name.
 
Method Summary
 java.lang.String get(java.lang.String key)
          Gets the String corresponding to the given key.
 java.lang.String getPath(java.lang.String key)
          Gets the path corresponding to the given key.
 java.lang.String getUrl(java.lang.String key)
          Gets the URL corresponding to the given key.
 
Methods inherited from class leon.misc.LyResourceBundle
checkKey, clearCache, free, getKeyList, getKeys, getSonEnvironments, hasKey, put, remove, removeBundles, saveTo
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
See Also:
Constant Field Values
Constructor Detail

LyFiles

public LyFiles(LyEnvironment environment)
Constructor with a given environment. Calls LyFiles(environment, null) constructor.

Parameters:
environment - The environment of the files bundle.

LyFiles

public LyFiles(LyEnvironment environment,
               java.lang.String name)
Constructor with a given environment and name. Calls the LyFiles(environment, name, environment.getLocale()) constructor.

Parameters:
environment - The environment of the files bundle.
name - The name of the files bundle.

LyFiles

public LyFiles(LyEnvironment environment,
               java.lang.String name,
               java.lang.String skin)
Constructor with a given environment and name. Calls the LyFiles(environment, name, environment.getLocale()) constructor.

Parameters:
environment - The environment of the files bundle.
name - The name of the files bundle.
skin - The name of the skin
Method Detail

getPath

public java.lang.String getPath(java.lang.String key)
Gets the path corresponding to the given key.

Parameters:
key - The path key.
Returns:
The path corresponding to the given key if found, the key otherwise.

getUrl

public java.lang.String getUrl(java.lang.String key)
Gets the URL corresponding to the given key.

Parameters:
key - The key of the URL.
Returns:
The URL corresponding to the given key if found, the key otherwise.

get

public java.lang.String get(java.lang.String key)
Gets the String corresponding to the given key. Start with the application ResourceBundle and if not found, search within the parent ResourceBundle.

Overrides:
get in class LyResourceBundle
Parameters:
key - The key to search
Returns:
The value corresponding to the given key if found, null otherwise.

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com