Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

oracle.adfnmc.java.text
Class MessageFormat

java.lang.Object
  extended by oracle.adfnmc.java.text.MessageFormat

public class MessageFormat
extends java.lang.Object


Constructor Summary
MessageFormat()
           
 
Method Summary
static java.lang.String format(java.lang.String originalMsg, java.lang.Object[] params)
          -Copied from oracle.adfnmc.util.Utility.formatMessage-
Replace named parameters in a string with the actual parameter values.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageFormat

public MessageFormat()
Method Detail

format

public static final java.lang.String format(java.lang.String originalMsg,
                                            java.lang.Object[] params)
-Copied from oracle.adfnmc.util.Utility.formatMessage-
Replace named parameters in a string with the actual parameter values. Uses '%' as an escape character.

Parameters:
originalMsg - Unformatted message, like "Hello {0}!"
params - Array of objects to use as parameter values, like {"Bob"}
Returns:
Formatted message, like "Hello Bob!"

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.