Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.plugin.defaultresourcepack
Class DefaultLanguagePackImpl

java.lang.Object
  extended by net.java.sip.communicator.plugin.defaultresourcepack.DefaultLanguagePackImpl
All Implemented Interfaces:
LanguagePack, ResourcePack

public class DefaultLanguagePackImpl
extends Object
implements LanguagePack

Author:
Damian Minkov

Field Summary
 
Fields inherited from interface net.java.sip.communicator.service.resources.LanguagePack
RESOURCE_NAME_DEFAULT_VALUE
 
Fields inherited from interface net.java.sip.communicator.service.resources.ResourcePack
RESOURCE_NAME
 
Constructor Summary
DefaultLanguagePackImpl()
          Constructor.
 
Method Summary
 Iterator<Locale> getAvailableLocales()
          All the locales in the language pack.
 String getDescription()
          Returns the description of this resource pack.
 String getName()
          Returns the name of this resource pack.
 Map<String,String> getResources()
          Returns a Map, containing all [key, value] pairs for this resource pack.
 Map<String,String> getResources(Locale locale)
          Returns a Map, containing all [key, value] pairs for the given locale.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultLanguagePackImpl

public DefaultLanguagePackImpl()
Constructor.

Method Detail

getResources

public Map<String,String> getResources()
Returns a Map, containing all [key, value] pairs for this resource pack.

Specified by:
getResources in interface ResourcePack
Returns:
a Map, containing all [key, value] pairs for this resource pack.

getResources

public Map<String,String> getResources(Locale locale)
Returns a Map, containing all [key, value] pairs for the given locale.

Specified by:
getResources in interface LanguagePack
Parameters:
locale - The Locale we're looking for.
Returns:
a Map, containing all [key, value] pairs for the given locale.

getName

public String getName()
Returns the name of this resource pack.

Specified by:
getName in interface ResourcePack
Returns:
the name of this resource pack.

getDescription

public String getDescription()
Returns the description of this resource pack.

Specified by:
getDescription in interface ResourcePack
Returns:
the description of this resource pack.

getAvailableLocales

public Iterator<Locale> getAvailableLocales()
All the locales in the language pack.

Specified by:
getAvailableLocales in interface LanguagePack
Returns:
all the locales this Language pack contains.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.