Oracle Fusion Middleware extensions for XML based Datamodel Framework
11g Release 1 (11.1.1.6)

E22566-04

oracle.apps.fnd.applxdf.util.messages
Class MessageBundleProcessor

java.lang.Object
  extended by oracle.apps.fnd.applxdf.util.messages.MessageBundleProcessor
Direct Known Subclasses:
MessagesXMLGenerator

public class MessageBundleProcessor
extends java.lang.Object

Main class that reads the Message ID allocation specified in the message_id_allocation.properties file

The path to the message_id_allocation.properties file can be specified using the oracle.apps.fnd.applxdf.message_id_alloc_file system property. If this system property is not specified the default resbundle_list.properties is read.


Nested Class Summary
static class MessageBundleProcessor.BundleEntry
          Models a single resource bundle entry in the allocation properties file
static class MessageBundleProcessor.BundleEntryList
          Models a list of BundleEntry objects
static interface MessageBundleProcessor.BundleEntryVisitor
          A visitor class for visiting each entry for a resource bundle
 
Field Summary
protected  java.util.Properties allocProps
           
protected  MessageBundleProcessor.BundleEntryList bundleList
           
static java.util.logging.Logger LOGGER
           
static java.lang.String RESOURCE_BUNDLE_LIST_PATH
           
 
Constructor Summary
MessageBundleProcessor()
           
 
Method Summary
 MessageBundleProcessor.BundleEntryList getBundleList()
           
static java.lang.String getMessageType(java.util.ResourceBundle pRb, java.lang.String pKey)
           
protected static java.lang.String getRbString(java.util.ResourceBundle pRb, java.lang.String pKey)
           
static java.lang.String getViewRoot()
          Convenience method to return ade view root
static boolean isNullOrEmpty(java.lang.String pString)
          Convenience method that checks if the given String is null or empty
protected static boolean isODLEntry(java.lang.String lKey)
           
protected static boolean isSuffixed(java.lang.String lKey)
           
protected static int parseMsgId(java.lang.String pSDFMsgIdValue)
           
protected static java.lang.String parsePrefix(java.lang.String pSDFMsgIdValue)
           
 void reloadAll()
          Force reloads all bundles for all entries in the allocation properties file
 void visitAllMessages(MessageBundleProcessor.BundleEntryVisitor pVisitor)
          Performs callback on the visitor for all messages for all resource bundles loaded from the messages allocation properties file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE_BUNDLE_LIST_PATH

public static final java.lang.String RESOURCE_BUNDLE_LIST_PATH

allocProps

protected java.util.Properties allocProps

bundleList

protected MessageBundleProcessor.BundleEntryList bundleList

LOGGER

public static final java.util.logging.Logger LOGGER
Constructor Detail

MessageBundleProcessor

public MessageBundleProcessor()
Method Detail

reloadAll

public void reloadAll()
               throws java.lang.Exception
Force reloads all bundles for all entries in the allocation properties file

Throws:
java.lang.Exception

visitAllMessages

public void visitAllMessages(MessageBundleProcessor.BundleEntryVisitor pVisitor)
Performs callback on the visitor for all messages for all resource bundles loaded from the messages allocation properties file

Parameters:
pVisitor - callback API

getBundleList

public MessageBundleProcessor.BundleEntryList getBundleList()

isSuffixed

protected static boolean isSuffixed(java.lang.String lKey)

parseMsgId

protected static int parseMsgId(java.lang.String pSDFMsgIdValue)

parsePrefix

protected static java.lang.String parsePrefix(java.lang.String pSDFMsgIdValue)

isODLEntry

protected static boolean isODLEntry(java.lang.String lKey)

getRbString

protected static java.lang.String getRbString(java.util.ResourceBundle pRb,
                                              java.lang.String pKey)

getViewRoot

public static java.lang.String getViewRoot()
Convenience method to return ade view root

Returns:

isNullOrEmpty

public static boolean isNullOrEmpty(java.lang.String pString)
Convenience method that checks if the given String is null or empty

Parameters:
pString - - String to check
Returns:
true if the given string is null or empty. false otherwise.

getMessageType

public static java.lang.String getMessageType(java.util.ResourceBundle pRb,
                                              java.lang.String pKey)

Oracle Fusion Middleware extensions for XML based Datamodel Framework
11g Release 1 (11.1.1.6)

E22566-04

Copyright © 2012 Oracle. All Rights Reserved.