Oracle Fusion Middleware extensions for Logging and Diagnostics
11g Release 1 (11.1.2)

E22565-02

oracle.apps.fnd.appltest.diagfwk.engine.provider.nls
Interface NLSBundle_nl


public interface NLSBundle_nl

Provides API for performing translation given a NLS key and associated token name value pairs. This interface sheilds the clients from the underlying bundle implementations where the translated resources are stored for example, Java resource bundles, FND Message service etc.

An appropriate instance of NLSBundle can be created by calling the NLSProvider.createNLSBundle(String) method with the respective bundle name.

Since:
release specific (what release of product did this appear in)
Version:
$Header: atgpf/appltest/applications/Diagnostics/Engine/src/oracle/apps/fnd/appltest/diagfwk/engine/provider/nls/NLSBundle.java /main/3 2008/10/15 16:37:04 ppradhan Exp $
Author:
ppradhan

Method Summary
 void cleanup()
          Performs any cleanup required by the bundle.
 java.lang.String translate(java.lang.String pNlsKey, NameValueList pTokens, java.lang.String pDefault)
          Returns a translated String based on the current locale for the given nls key and token values from this bundle.
 

Method Detail

translate

java.lang.String translate(java.lang.String pNlsKey,
                           NameValueList pTokens,
                           java.lang.String pDefault)
Returns a translated String based on the current locale for the given nls key and token values from this bundle. If a translated resource with the given nls key does not exist in this bundle, then just the nls key and token name values (if any) are returned.

Parameters:
pNlsKey - Key for the nls message
pTokens - token name values (if any) that should be substitued during the translation
pDefault - default message to return if unable to translate for instance if the nls key doesn't exist in this bundle
Returns:
a translated String based on the current locale.

cleanup

void cleanup()
Performs any cleanup required by the bundle. This API should be called after all the translation activities have been completed on this bundle.


Oracle Fusion Middleware extensions for Logging and Diagnostics
11g Release 1 (11.1.2)

E22565-02

Copyright © 2011 Oracle. All Rights Reserved.