Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.6.0)

E13403-07

oracle.javatools.resourcebundle
Interface ResourceBundleKeyGenerator

All Known Implementing Classes:
CustomizableResourceBundleKeyGenerator, DefaultResourceKeyGenerator

public interface ResourceBundleKeyGenerator

Stragegy for generating default key names for the given text. This may be set on a per IdeResourceBundle instance, otherwise a default key generation strategy will be used.


Method Summary
 java.lang.String createKeyNameFromText(ResourceBundleWrapper bundle, java.lang.String text)
          Creates a key name for the given text on the bundle.
 

Method Detail

createKeyNameFromText

java.lang.String createKeyNameFromText(ResourceBundleWrapper bundle,
                                       java.lang.String text)
Creates a key name for the given text on the bundle. This only suggests a key name and does NOT add the key to the bundle.

Parameters:
bundle - The Resource Bundle to receive the new key.
text - The translated text to be added
Returns:
the suggested name of the key.
Throws:
java.lang.NullPointerException - if bundleor text is null
See Also:
ResourceBundleWrapper

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.6.0)

E13403-07

Copyright © 1997, 2011, Oracle. All rights reserved.