Class Messages
java.lang.Object
com.sun.tools.corba.se.idl.som.cff.Messages
This class provides messaging services for accessing, and merging
parameters into, translatable message text. The text is presumed
to reside in a .properties file. A "cff.properties" file that
contains all of the message text needed for the CFF framework itself
is loaded during class initialization. All of the messages in the
cff.properties file that are needed by the CFF framework contain keys
that begin with the string "cff.".
The static method Messages.msgLoad may be used to merge additional message text .properties files needed by other frameworks or user programs.
- Author:
- Larry K. Raper
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final StringReturns the message text corresponding to the passed msgkey string.static final StringReturns the message text corresponding to the passed msgkey string.static final StringReturns the message text corresponding to the passed msgkey string.static final StringReturns the message text corresponding to the passed msgkey string.static final StringReturns the message text corresponding to the passed msgkey string.static final StringReturns the message text corresponding to the passed msgkey string.static final StringReturns the message text corresponding to the passed msgkey string.static final StringReturns the message text corresponding to the passed msgkey string.static final voidLoads additional message keys and text found in the passed properties file.
-
Constructor Details
-
Messages
public Messages()
-
-
Method Details
-
msgLoad
Loads additional message keys and text found in the passed properties file. The specified properties file is assumed to reside in the CLASSPATH. An IOException is thrown if the loading fails.- Throws:
IOException
-
msg
Returns the message text corresponding to the passed msgkey string. If the msgkey cannot be found, its value is returned as the output message text. -
msg
Returns the message text corresponding to the passed msgkey string. The message text is assumed to require the insertion of a single argument, supplied by the "parm" parameter. If the message text does not contain the meta characters "%1" that indicate where to place the argument, the passed argument is appended at the end of the message text.If the msgkey cannot be found, its value is used as the message text.
-
msg
Returns the message text corresponding to the passed msgkey string. The message text is assumed to require the insertion of a single argument, supplied by the "parm" parameter. If the message text does not contain the meta characters "%1" that indicate where to place the argument, the passed argument is appended at the end of the message text.If the msgkey cannot be found, its value is used as the message text.
-
msg
Returns the message text corresponding to the passed msgkey string. The message text is assumed to require the insertion of two arguments, supplied by the "parm1" and "parm2" parameters. If the message text does not contain the meta characters "%1" and "%2" that indicate where to place the arguments, the passed arguments are appended at the end of the message text.If the msgkey cannot be found, its value is used as the message text.
-
msg
Returns the message text corresponding to the passed msgkey string. The message text is assumed to require the insertion of two arguments, supplied by the "parm1" and "parm2" parameters. If the message text does not contain the meta characters "%1" and "%2" that indicate where to place the arguments, the passed arguments are appended at the end of the message text.If the msgkey cannot be found, its value is used as the message text.
-
msg
Returns the message text corresponding to the passed msgkey string. The message text is assumed to require the insertion of two arguments, supplied by the "parm1" and "parm2" parameters. If the message text does not contain the meta characters "%1" and "%2" that indicate where to place the arguments, the passed arguments are appended at the end of the message text.If the msgkey cannot be found, its value is used as the message text.
-
msg
Returns the message text corresponding to the passed msgkey string. The message text is assumed to require the insertion of two arguments, supplied by the "parm1" and "parm2" parameters. If the message text does not contain the meta characters "%1" and "%2" that indicate where to place the arguments, the passed arguments are appended at the end of the message text.If the msgkey cannot be found, its value is used as the message text.
-
msg
Returns the message text corresponding to the passed msgkey string. The message text is assumed to require the insertion of three arguments, supplied by the "parm1", "parm2" and "parm3" parameters. If the message text does not contain the meta characters "%1" and "%2" that indicate where to place the arguments, the passed arguments are appended at the end of the message text.If the msgkey cannot be found, its value is used as the message text.
-