pl.psnc.dl.ege.webapp.config
Class LabelProvider

java.lang.Object
  extended by pl.psnc.dl.ege.webapp.config.LabelProvider

public final class LabelProvider
extends java.lang.Object

Singleton class which provides EGE web application with access to local labels and names.

Author:
mariuszs

Method Summary
static LabelProvider getInstance(java.lang.String path)
           
 java.lang.String getLabel(java.lang.String key)
          Returns specified label of default locale.
 java.lang.String getLabel(java.lang.String key, java.util.Locale locale)
          Returns label in language specified by locale.
 java.lang.String getLabel(java.lang.String key, java.lang.String locale)
          Returns label in language specified by locale.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static LabelProvider getInstance(java.lang.String path)

getLabel

public java.lang.String getLabel(java.lang.String key)
Returns specified label of default locale.
If label does not exists method will return an empty String.

Parameters:
key -
Returns:

getLabel

public java.lang.String getLabel(java.lang.String key,
                                 java.lang.String locale)
Returns label in language specified by locale.
If label does not exists method will return an empty String.

Parameters:
key -
locale -
Returns:

getLabel

public java.lang.String getLabel(java.lang.String key,
                                 java.util.Locale locale)
Returns label in language specified by locale.
If label does not exists method will return an empty String.

Parameters:
key -
locale -
Returns:


Copyright © 2010. All Rights Reserved.