|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--multex.MsgText
Services for getting the message text for exceptions. It handles exceptions
Exc)
Failure)
Msg or Awt.
| Field Summary | |
static java.lang.String |
causeMarker
|
static java.lang.String |
resourceBundleName
|
| Method Summary | |
static void |
appendMessageChain(java.lang.StringBuffer io_destination,
java.lang.Throwable i_throwable,
java.lang.String i_lineSeparator)
Deprecated. since MulTEx 4 (2003-05-27). Use the more parameterized version instead. |
static void |
appendMessageLine(java.lang.StringBuffer io_destination,
java.lang.Throwable i_throwable)
Appends the usually one-line message text for the exception i_throwable with inserted parameters to io_buffer. |
static void |
appendMessageLine(java.lang.StringBuffer io_destination,
java.lang.Throwable i_throwable,
MultexLocale i_locale)
Appends the usually one-line message text for the exception i_throwable with inserted parameters to io_buffer, localizable. |
static MultexLocale |
getLocale()
Returns the actual MultexLocale used for static or no internationalization. |
static void |
setInternationalization(boolean i_internationalization)
If true, Activates the static default internationalization of message texts. |
static void |
setInternationalization(MultexLocale i_locale)
Activates a specific static internationalization of message texts. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String resourceBundleName
public static final java.lang.String causeMarker
| Method Detail |
public static void setInternationalization(boolean i_internationalization)
appendMessageLine(java.lang.StringBuffer, java.lang.Throwable) or appendMessageChain(java.lang.StringBuffer, java.lang.Throwable, java.lang.String) will deliver the
localized message text for an exception instead of the default message
text contained in the MultexException-object.
The localized message text will be taken from the resource bundle
with the name resourceBundleName.
If false, deactivates static internationalization. The Message text for a
MultexException will be taken directly from the exception object itself.
public static void setInternationalization(MultexLocale i_locale)
throws java.lang.IllegalArgumentException
appendMessageLine(java.lang.StringBuffer, java.lang.Throwable) or appendMessageChain(java.lang.StringBuffer, java.lang.Throwable, java.lang.String) will deliver the
localized message text for an exception instead of the default message
text contained in the MultexException-object.
i_locale - How to localize exception message texts
java.lang.IllegalArgumentException - If null is provided as i_localesetInternationalization(boolean)public static MultexLocale getLocale()
public static void appendMessageChain(java.lang.StringBuffer io_destination,
java.lang.Throwable i_throwable,
java.lang.String i_lineSeparator)
appendMessageLine(java.lang.StringBuffer, java.lang.Throwable) for a despription,
how each exception is transformed into a message line.
i_lineSeparator - The String used to separate the lines of the message chain.
If null is provided, defaults to Failure.lineSeparator.
public static void appendMessageLine(java.lang.StringBuffer io_destination,
java.lang.Throwable i_throwable)
This file must contain definition lines of the form:
packageName.ExceptionName = message text pattern
or
packageName.ClassName$InnerExceptionName = message text pattern
with parameter substitutors in the message text pattern, e.g.:
CopyNP$CopyFailure = The file "{0}" could not be copied to "{1}"
public static void appendMessageLine(java.lang.StringBuffer io_destination,
java.lang.Throwable i_throwable,
MultexLocale i_locale)
i_locale - Source for the message text patterns instead of the default,
the text pattern is taken with the class name of i_throwable
as key from i_locale.getMessages().
Controls the formatting of the message parameters, too.for details of parameter substitution
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||