Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-01

oracle.javatools.resourcebundle
Class DefaultResourceKeyGenerator

java.lang.Object
  extended by oracle.javatools.resourcebundle.DefaultResourceKeyGenerator
All Implemented Interfaces:
ResourceBundleKeyGenerator

public class DefaultResourceKeyGenerator
extends java.lang.Object
implements ResourceBundleKeyGenerator


Constructor Summary
DefaultResourceKeyGenerator()
           
 
Method Summary
 java.lang.String createKeyNameFromText(ResourceBundleWrapper bundle, java.lang.String text)
          Creates a key name for the given text on the bundle.
 java.lang.String validateKeyNameFromText(ResourceBundleWrapper resourceBundleWrapper, java.lang.String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultResourceKeyGenerator

public DefaultResourceKeyGenerator()
Method Detail

createKeyNameFromText

public java.lang.String createKeyNameFromText(ResourceBundleWrapper bundle,
                                              java.lang.String text)
Description copied from interface: ResourceBundleKeyGenerator
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.

Specified by:
createKeyNameFromText in interface ResourceBundleKeyGenerator
Parameters:
bundle - The Resource Bundle to receive the new key.
text - The translated text to be added
Returns:
the suggested name of the key.
See Also:
ResourceBundleWrapper

validateKeyNameFromText

public java.lang.String validateKeyNameFromText(ResourceBundleWrapper resourceBundleWrapper,
                                                java.lang.String text)
Specified by:
validateKeyNameFromText in interface ResourceBundleKeyGenerator

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-01

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