|
Oracle Fusion Middleware extensions for Applications Core API Reference 11g Release 1 (11.1.1.6) E22562-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.apps.fnd.applcore.messages.model.util.Util
public final class Util
Messages utilities.
Field Summary | |
---|---|
static java.util.List<java.lang.String> |
EMPTY_LIST
Static empty list. |
static java.lang.String |
INCIDENT_TOKEN
|
static java.lang.String |
KEY_DELIMITER
Delimiter used in storing the message key. |
Method Summary | |
---|---|
static java.lang.String |
autoLog(MessageVORow pMessage,
java.util.Map<java.lang.String,java.lang.Object> pTokens)
Attempt to auto-log a message. |
static java.lang.String |
autoLog(java.lang.String msgKey,
java.util.Map<java.lang.String,java.lang.Object> pTokens)
Attempt to auto-log a message. |
static java.lang.String[] |
breakApartKey(java.lang.String pMsgKey)
Break apart a message key, in the format appShortName:::messageName into an array of appShortName and messageName components |
static java.lang.String |
buildDetails(MessageServiceAMImpl pService,
java.lang.String pAppShortName,
java.lang.String pMessageName,
boolean for_resource_bundle)
Return the message text components, in XML format. |
static java.lang.String |
buildDetails(MessageVORow pMessage)
Return the message text components, in XML format. |
static java.lang.String |
buildDetails(MessageVORow pMessage,
boolean for_resource_bundle)
Return the message text components, in XML format. |
static java.lang.String |
buildDetails(MessageVORow pMessage,
java.lang.String pDetails,
java.lang.String pAction)
Return the message text components, in XML format. |
static java.lang.String |
buildDetails(MessageVORow pMessage,
java.lang.String pDetails,
java.lang.String pAction,
boolean for_resource_bundle)
Return the message text components, in XML format. |
static java.lang.String |
buildDetails(java.lang.Object key)
Return the message text components, in XML format. |
static java.lang.String |
buildDetails(java.lang.Object key,
boolean for_resource_bundle)
Return the message text components, in XML format. |
static java.lang.String |
buildEncoded(java.lang.String pAppShortName,
java.lang.String pMessageName,
java.util.List<java.lang.String> pTokens)
Returns the Message Text in encoded format. |
static java.lang.String |
createEncoded(MessageEOImpl pMsg)
Returns the Message Text in encoded format. |
static java.lang.String |
createResourceBundleMessage(MessageEOImpl pMsg)
Convert messageText (the short message) component to MessageFormat-style message. |
static java.lang.String |
createResourceBundleMessage(MessageVORow pMsg)
Convert messageText (the short message) component to MessageFormat-style message. |
static java.lang.String |
createResourceBundleMessage(java.lang.String pMsg,
oracle.jbo.RowIterator pTokens)
Convert a message component with named tokens to one with numbered tokens, suitable for use with native java MessageFormat class. |
static java.lang.String |
format(MessageVORow pMessage,
java.lang.String pText,
java.util.List<TokenValueVORow> pTokens)
Deprecated. Use format(MessageVORow, String, Map) instead. |
static java.lang.String |
format(MessageVORow pMessage,
java.lang.String pText,
java.util.Map<java.lang.String,java.lang.Object> pTokens)
Get a token substituted message component. |
static oracle.adf.model.binding.DCErrorMessage |
formatHTMLDetailMessage(java.lang.Exception e)
Return a detail message object, contructed from an exception. |
static oracle.adf.model.binding.DCErrorMessage |
formatHTMLDetailMessage(java.lang.String xml)
Return a detail message object, contructed from an exception. |
static java.lang.String |
formatHTMLMessage(java.lang.Exception e)
Return the formatted, token-substituted short message text, suitable for use in HTML. |
static java.lang.String |
formatHTMLMessage(java.lang.String xml)
Return the formatted, token-substituted short message text, suitable for use in HTML. |
static java.lang.String |
formatTextMessage(java.lang.String xml)
Get a formatted text version of the message. |
static java.lang.String |
getResourceBundleMessageText(java.lang.Object key)
Gets the resource bundle text of a message. |
static java.util.List<java.lang.String> |
getTokens(java.util.regex.Pattern pPattern,
java.lang.String pMessage)
Extracts the tokens from the string. |
static java.util.List<java.lang.String> |
getTokens(java.lang.String pMessage)
Extracts the tokens from the string. |
static java.util.Map<java.lang.String,java.lang.Object> |
listToMap(java.util.List<TokenValueVORow> pTokens)
Convert a list of TokenValueVO rows with token names and values to a Map. |
static java.util.List<TokenValueVORow> |
mapToList(TokenValueVOImpl pToken,
java.util.Map<java.lang.String,java.lang.Object> pTokens)
Convert a Map of token name/value object to a list of TokenValueVO rows. |
static java.lang.Object[] |
untokenize(MessageVORow pMsg,
java.util.Map<java.lang.String,java.lang.Object> params)
Convert token value Map to an array of token values, in order tokens are declared. |
static java.lang.Object[] |
untokenize(java.lang.String pMsgKey,
java.util.Map<java.lang.String,java.lang.Object> params)
Construct array of values for each token in the message, in order tokens are declared. |
static java.lang.Object[] |
untokenize(java.lang.String pMsgKey,
java.lang.Object... params)
Construct array of values for each token in the message, in order tokens are declared. |
static java.lang.Object[] |
untokenize(java.lang.String pApp,
java.lang.String pName,
java.util.Map<java.lang.String,java.lang.Object> params)
Construct array of values for each token in the message, in order tokens are declared. |
static java.lang.Object[] |
untokenize(java.lang.String pApp,
java.lang.String pName,
java.lang.Object... params)
Convert token value Map to an array of token values, in order tokens are declared. |
static boolean |
validateText(MessageEOImpl pMsg,
java.lang.String pText)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.util.List<java.lang.String> EMPTY_LIST
public static final java.lang.String KEY_DELIMITER
public static final java.lang.String INCIDENT_TOKEN
Method Detail |
---|
public static java.lang.String autoLog(MessageVORow pMessage, java.util.Map<java.lang.String,java.lang.Object> pTokens)
pMessage
- the message to logpTokens
- the tokens to logpublic static java.lang.String autoLog(java.lang.String msgKey, java.util.Map<java.lang.String,java.lang.Object> pTokens)
msgKey
- The message key, in the format APP:::MSGNAMEpTokens
- The tokens to logpublic static java.util.List<java.lang.String> getTokens(java.lang.String pMessage)
pMessage
- Message of the token.
public static java.util.List<java.lang.String> getTokens(java.util.regex.Pattern pPattern, java.lang.String pMessage)
pPattern
- Pattern to use for extracting TokenspMessage
- String containing the tokens to extract
public static java.util.Map<java.lang.String,java.lang.Object> listToMap(java.util.List<TokenValueVORow> pTokens)
pTokens
-
public static java.util.List<TokenValueVORow> mapToList(TokenValueVOImpl pToken, java.util.Map<java.lang.String,java.lang.Object> pTokens)
pToken
- The TokenValueVOImpl classpTokens
- Map of token names/value objects
@Deprecated public static java.lang.String format(MessageVORow pMessage, java.lang.String pText, java.util.List<TokenValueVORow> pTokens)
format(MessageVORow, String, Map)
instead.
pMessage
- The Message to be formattedpText
- Text to be formatted. Typically this will be one of
components of pMessage.pTokens
- List of rows with token name/values to substitute
public static java.lang.String format(MessageVORow pMessage, java.lang.String pText, java.util.Map<java.lang.String,java.lang.Object> pTokens)
pMessage
- The Message to be formattedpText
- Text to be formatted. Typically this will be one of
components of pMessage.pTokens
- A map of token name-value pairs
public static java.lang.String buildEncoded(java.lang.String pAppShortName, java.lang.String pMessageName, java.util.List<java.lang.String> pTokens)