| 
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.0.0) E17493-01  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.javatools.resourcebundle.CustomizableResourceBundleKeyGenerator
public class CustomizableResourceBundleKeyGenerator
| Field Summary | |
|---|---|
static int | 
minimumKeyMaximumLength
 | 
| Constructor Summary | |
|---|---|
CustomizableResourceBundleKeyGenerator()
Provides a ResourceBundleKeyGenerator implementation can be customized
 with respects to the minimum and maximum key length as well as the what number will be 
 used as the starting sequence if a key generated by this generator needs to have a number
 attached to the end to provide a unique key. | 
|
| Method Summary | |
|---|---|
 java.lang.String | 
createKeyNameFromText(ResourceBundleWrapper resourceBundleWrapper,
                      java.lang.String string)
Creates a unique key for the given display string  | 
 int | 
getKeyMaximumLength()
Gets the maximum length of a key  | 
 int | 
getKeyMinimumLength()
Gets the minimum length of a key  | 
 int | 
getSequenceStartsWith()
Gets the number to use as a starting piont for generating a unique key when the key would otherwise not be unique.  | 
 void | 
setKeyMaximumLength(int newkeyMaximumLength)
The key maximum length should be greater than 8 to keep key uniqueness.  | 
 void | 
setKeyMinmumLength(int length)
Sets the minimum length of a key.  | 
 void | 
setSequenceStartsWith(int newsequenceStartsWith)
Sets the number to use when generating a new sequence for a key that would otherwise not be unique.  | 
 java.lang.String | 
validateKeyNameFromText(ResourceBundleWrapper resourceBundleWrapper,
                        java.lang.String string)
 | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static int minimumKeyMaximumLength
| Constructor Detail | 
|---|
public CustomizableResourceBundleKeyGenerator()
ResourceBundleKeyGenerator implementation can be customized
 with respects to the minimum and maximum key length as well as the what number will be 
 used as the starting sequence if a key generated by this generator needs to have a number
 attached to the end to provide a unique key.
| Method Detail | 
|---|
public java.lang.String createKeyNameFromText(ResourceBundleWrapper resourceBundleWrapper,
                                              java.lang.String string)
createKeyNameFromText in interface ResourceBundleKeyGeneratorresourceBundleWrapper - the bundle to generate a key forstring - the string displayed to the user
ResourceBundleWrapper
public java.lang.String validateKeyNameFromText(ResourceBundleWrapper resourceBundleWrapper,
                                                java.lang.String string)
validateKeyNameFromText in interface ResourceBundleKeyGeneratorpublic void setKeyMaximumLength(int newkeyMaximumLength)
newkeyMaximumLength - public int getKeyMaximumLength()
public void setKeyMinmumLength(int length)
the - minimum length of a keypublic int getKeyMinimumLength()
public void setSequenceStartsWith(int newsequenceStartsWith)
newsequenceStartsWith - number to use as the starting pointpublic int getSequenceStartsWith()
  | 
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.0.0) E17493-01  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||