| 
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.1.0) E13403-02  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.javatools.resourcebundle.ResourceBundleUtils
oracle.ide.resourcebundle.ResourceBundleUtils
public final class ResourceBundleUtils
ResourceBundleUtils provides utility routines needed by the
 ResourceBundleManager and ResourceBundleKeyChooser.  Methods in
 this class should not be used by others.
| Field Summary | 
|---|
| Fields inherited from class oracle.javatools.resourcebundle.ResourceBundleUtils | 
|---|
ADF_CONFIG, ADF_CONFIG_CHILD, ADF_NAMESPACE, APP_BUNDLE_NODE, BUNDLE_ID_NODE, BUNDLE_LIST_NODE, OVERRIDE_ATTRIBUTE, XMLNS, XMLNS_RESBUNDLE | 
| Method Summary | |
|---|---|
static boolean | 
alwaysPromptForDescription(PropertyStorage project)
Gets whether the project is set to always prompt for a description  | 
static java.lang.String | 
buildQualifiedName(PropertyStorage project,
                   java.lang.String baseName)
Builds a qualified bundle name by using the default package name for the project and adding that to the base name  | 
static java.lang.String | 
deriveBundleId(PropertyStorage project,
               java.net.URL bundleURL)
Attempts to derive a bundleId for the specified URL based on it being part of the specified project  | 
static ResourceBundleWrapper | 
findBundleInADFLibrary(Project project,
                       java.net.URL libraryURL,
                       java.lang.String bundleId)
Finds the ResourceBundleWrapper for the specified bundleId in the
 specified ADF library | 
static java.util.List<java.net.URL> | 
findExistingBundles(PropertyStorage project,
                    java.lang.String bundleId)
Finds URLS that already exist for the specified bundle id.  | 
static int | 
getBundleCreationPolicy(PropertyStorage project)
Gets the bundle creation policy for the specified project  | 
static java.lang.String | 
getBundleId(ResourceBundleWrapper bundle)
Gets the bundle id from this bundle.  | 
static java.util.List<java.lang.String> | 
getDefaultBundleNameForProject(PropertyStorage project)
Returns the bundle names that may be used for a project.  | 
static ResourceBundleType | 
getDefaultResourceBundleType(PropertyStorage project)
Gets the default resource bundle type for the specified project  | 
static ResourceBundleConstants.BundleTypes | 
getTypeFromBundle(ResourceBundleWrapper bundle)
Gets the type of the specified ResourceBundleWrapper  | 
static java.net.URL | 
getURL(NodeResourceBundle bundle)
Used to determine the URL that stores the resources.  | 
static boolean | 
isAutomaticallySynchronized(PropertyStorage project)
Gets whether the project is set to automatically synchronize strings into resource bundles  | 
static boolean | 
isBundleReadOnly(NodeResourceBundle bundle)
Returns whether the bundle should be treated as read-only.  | 
static boolean | 
isDefaultBundleForProject(PropertyStorage project,
                          java.lang.String bundleId)
 | 
static java.lang.String | 
replaceNewLines(java.lang.String string)
 | 
static java.lang.String | 
replaceWhitespace(java.lang.String string)
 | 
static void | 
setADFRestricted(PropertyStorage project,
                 boolean adfRestricted)
Sets the ADFRestricted property of the ResourceBundleOptions for the specified project | 
static Pair | 
splitFileFromPath(java.lang.String bundleId)
Takes a bundle id (which is a fully-qualified name of a bundle) and splits it into the file name and the path.  | 
static boolean | 
warnAboutHardcodedNontranslatedStrings(PropertyStorage project)
Gets whether the project is set to report nontranslatable strings as violations  | 
| Methods inherited from class oracle.javatools.resourcebundle.ResourceBundleUtils | 
|---|
addUnicodeEscapes, convertMetadataToString, convertStringToMetadata, createConfigMap, getADFConfig, getADFContext, getAppBundleInfo, getTextString, isMetadataEqual, stripUnicodeEscapes | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public static int getBundleCreationPolicy(PropertyStorage project)
project - The current Project's Data that owns this file.
public static boolean isAutomaticallySynchronized(PropertyStorage project)
project - The current Project's Data that owns this file.
public static boolean warnAboutHardcodedNontranslatedStrings(PropertyStorage project)
project - The current Project's Data that owns this file.
public static boolean alwaysPromptForDescription(PropertyStorage project)
project - the current project's data that owns this file
public static ResourceBundleType getDefaultResourceBundleType(PropertyStorage project)
project - The current Project's Data that owns this file.
public static java.lang.String getBundleId(ResourceBundleWrapper bundle)
bundle - The bundle to get the id for
public static Pair splitFileFromPath(java.lang.String bundleId)
package1.package1.fileName  
 will be split into a file name of fileName and put into the first element
 of the Pair, and the path portion will be converted to package1/package2 and
 put into the second element of the Pair.
bundleId - string representing the fully-qualified name of the bundle
public static java.util.List<java.net.URL> findExistingBundles(PropertyStorage project,
                                                               java.lang.String bundleId)
project - The current Project's Data that owns this file.bundleId - fully-qualified name of the bundle
public static ResourceBundleWrapper findBundleInADFLibrary(Project project,
                                                           java.net.URL libraryURL,
                                                           java.lang.String bundleId)
ResourceBundleWrapper for the specified bundleId in the
 specified ADF library
project - the projectlibraryURL - the URL of the ADF LibrarybundleId - fully-qualifief bundle name
public static ResourceBundleConstants.BundleTypes getTypeFromBundle(ResourceBundleWrapper bundle)
bundle - the bundle to determine the type of
public static java.net.URL getURL(NodeResourceBundle bundle)
bundle - the bundle to get the url for
public static java.lang.String deriveBundleId(PropertyStorage project,
                                              java.net.URL bundleURL)
project - the project that owns the bundlebundleURL - the URL that stores the bundle data
public static void setADFRestricted(PropertyStorage project,
                                    boolean adfRestricted)
ResourceBundleOptions for the specified project
project - The current Project's Data that owns this file.adfRestricted - true if the project should is an ADF project; false otherwise
public static boolean isDefaultBundleForProject(PropertyStorage project,
                                                java.lang.String bundleId)
public static java.util.List<java.lang.String> getDefaultBundleNameForProject(PropertyStorage project)
project - 
public static java.lang.String buildQualifiedName(PropertyStorage project,
                                                  java.lang.String baseName)
project - baseName - 
public static boolean isBundleReadOnly(NodeResourceBundle bundle)
bundle - 
public static java.lang.String replaceNewLines(java.lang.String string)
public static java.lang.String replaceWhitespace(java.lang.String string)
  | 
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.1.0) E13403-02  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||