BEA Systems, Inc.

BEA WebLogic Server 9.1 API Reference


weblogic.i18ntools
Class L10nLookup

java.lang.Object
  extended byjava.util.Dictionary
      extended byjava.util.Hashtable
          extended byjava.util.Properties
              extended byweblogic.i18ntools.L10nLookup
All Implemented Interfaces:
Cloneable, Map, Serializable

public final class L10nLookup
extends Properties

L10nLookup is a Property object that contains the mapping between WebLogic Server log message ids and their respective Localizer properties.

See Also:
Serialized Form
Copyright © 2005 BEA Systems, Inc. All Rights Reserved.

Field Summary
 
Fields inherited from class java.util.Properties
defaults
 
Method Summary
static L10nLookup getL10n()
           
 Localizer getLocalizer(int id)
          Deprecated. use getLocalizer(String)
 Localizer getLocalizer(int id, Locale locale)
          Deprecated. use getLocalizer(String,Locale)
static Localizer getLocalizer(Locale locale, String className)
          Locate the basic Localizer class in the desired locale for the named Localizer class
 Localizer getLocalizer(String id)
          Locate the basic Localizer class in the JVM's default locale for the String id.
 Localizer getLocalizer(String id, Locale locale)
          Locate the basic Localizer class in the desired locale for the String id.
 Localizer getLocalizer(String msgId, Locale locale, boolean detailed)
          Locate the Localizer class in the desired locale for the String id.
 Vector getSubSystems()
          returns a list of defined subsystems.
 Object put(Object key, Object value)
           
 
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, loadFromXML, propertyNames, save, setProperty, store, storeToXML, storeToXML
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getL10n

public static L10nLookup getL10n()

getLocalizer

public Localizer getLocalizer(int id)
                       throws MissingResourceException
Deprecated. use getLocalizer(String)

Locate the basic Localizer class in the default locale for the integer id.

Parameters:
id - identifies a WebLogic Server message.
Throws:
MissingResourceException - There is no key match id in the property file.

getLocalizer

public Localizer getLocalizer(int id,
                              Locale locale)
                       throws MissingResourceException
Deprecated. use getLocalizer(String,Locale)

Locate the basic Localizer class for the integer id.

Parameters:
id - identifies a WebLogic Server message.
locale - Desired locale.
Throws:
MissingResourceException - if there is no key matching id in the property file.

getLocalizer

public static Localizer getLocalizer(Locale locale,
                                     String className)
                              throws MissingResourceException
Locate the basic Localizer class in the desired locale for the named Localizer class

Parameters:
locale - Desired locale.
Throws:
MissingResourceException

getLocalizer

public Localizer getLocalizer(String id)
                       throws MissingResourceException
Locate the basic Localizer class in the JVM's default locale for the String id.

Parameters:
id - 6 character string identifying a WebLogic Server message.
Throws:
MissingResourceException - There is no key match id in the property file.

getLocalizer

public Localizer getLocalizer(String id,
                              Locale locale)
                       throws MissingResourceException
Locate the basic Localizer class in the desired locale for the String id.

Parameters:
id - string identifying a WebLogic Server message.
locale - Desired locale.
Throws:
MissingResourceException - There is no key match id in the property file.

getLocalizer

public Localizer getLocalizer(String msgId,
                              Locale locale,
                              boolean detailed)
                       throws MissingResourceException
Locate the Localizer class in the desired locale for the String id. The detailed argument specifies whether to return the basic or detailed version of the catalog. The basic version includes version, subsystem, i18n/l10n package info, severity and message body. The detailed version includes message detail, cause and action text.

The id is a 6 digit String optionally prefixed by a tag as defined in the associated message catalog. For example, BEA-000100 or 000100 may be used as the message id. All server messages are prefixed with "BEA-". By default, user messages have no prefix. The prefix is useful for display purposes only. It is not used to differentiate between catalogs, although if a prefix is included in the id parameter, it must match the prefix defined for the message catalog.

Parameters:
locale - Desired locale.
detailed - true retrieves the Localizer containing detailed log message info. False retrieves the basic Localizer.
Throws:
MissingResourceException - There is no key match id in the property file.

getSubSystems

public Vector getSubSystems()
returns a list of defined subsystems.

Returns:
subsystem names.

put

public Object put(Object key,
                  Object value)

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs91
Copyright 2005 BEA Systems Inc.