uk.ac.essex.common.app
Class ApplicationDescriptorImpl

java.lang.Object
  extended by uk.ac.essex.common.app.ApplicationDescriptorImpl
All Implemented Interfaces:
ApplicationDescriptor

public class ApplicationDescriptorImpl
extends java.lang.Object
implements ApplicationDescriptor


Created Date: 02-Nov-2003

You should have received a copy of Lesser GNU public license with this code. If not please visit this site


Constructor Summary
ApplicationDescriptorImpl(java.lang.String id, java.lang.String name, LanguageService languageService)
           
 
Method Summary
 java.lang.String getId()
          Get a (process?) unique identifier
 LanguageService getLanguageService()
           
 java.lang.String getName()
          Get an internationalised description using the default locale.
 java.lang.String getName(java.util.Locale currentLocale)
          Get an internationalised description using the locale provided If this fails (is null) it returns just the name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationDescriptorImpl

public ApplicationDescriptorImpl(java.lang.String id,
                                 java.lang.String name,
                                 LanguageService languageService)
Method Detail

getLanguageService

public LanguageService getLanguageService()
Returns:
LanguageService

getId

public java.lang.String getId()
Get a (process?) unique identifier

Specified by:
getId in interface ApplicationDescriptor
Returns:

getName

public java.lang.String getName()
Get an internationalised description using the default locale. If this fails (is null) it returns just the name.

Specified by:
getName in interface ApplicationDescriptor
Returns:
String - the app name
See Also:
languageService

getName

public java.lang.String getName(java.util.Locale currentLocale)
Get an internationalised description using the locale provided If this fails (is null) it returns just the name.

Specified by:
getName in interface ApplicationDescriptor
Parameters:
currentLocale - - The applications current locale
Returns:
String - the app name
See Also:
languageService