この付録では、l10n_msgcat.dtd
スキーマの要素について説明します。
詳細については、次を参照してください。
Oracle CEPでは、特定Javaロケールに対してローカライズされたログ・メッセージの定義に使用できる、多数のロケール・メッセージ・カタログ要素が提供されます。
最上位Oracle CEPロケール・メッセージ・カタログ要素は、メッセージのカタログ・タイプに応じて次の階層に構成されます。
この項では、次のメッセージ・カタログの例を示します。
例H-3 ロケール固有のログ・メッセージ・カタログ
<?xml version="1.0"?> <!DOCTYPE message_catalog PUBLIC "weblogic-locale-message-catalog-dtd" "http://www.bea.com/servers/wls90/dtd/l10n_msgcat.dtd"> <message_catalog l10n_package="programs.utils" version="1.0"> <logmessage messageid="600001"> <messagebody> Could not open file, {0} on {1,date} after {2,number} attempts. </messagebody> <messagedetail> The configuration for this application will be defaulted to factory settings. Custom configuration information resides in file, {0}, created on {1,date}, but is not readable. </messagedetail> <cause> The user is not authorized to use custom configurations. Custom configuration information resides in file, {0}, created on {1,date}, but is not readable.The attempt has been logged to the security log. </cause> <action> The user needs to gain approriate authorization or learn to live with the default settings. </action> </log_message> </message_catalog>
例H-4 ロケール固有のログ・メッセージ・カタログ
<?xml version="1.0"?> <!DOCTYPE message_catalog PUBLIC "weblogic-locale-message-catalog-dtd" "http://www.bea.com/servers/wls90/dtd/l10n_msgcat.dtd"> <locale_message_catalog l10n_package="programs.utils" subsystem="MYUTIL" version="1.0"> <message> <messageid="FileMenuTitle"> <messagebody> Fichier </messagebody> </message> </locale_message_catalog>
この要素を使用すると、EPLプロセッサ・コンポーネントにおいてパラメータ化されたOracle CQLまたはEPLルールの値を定義できます。
表H-1 では、locale_message_catalog
要素の属性を示します。
表H-1 locale_message_catalog要素の属性
属性 | 説明 | データ型 | 必須? |
---|---|---|---|
|
このカタログに対して生成された LogLocalizer または TextLocalizer プロパティを含むJavaパッケージ。プロパティ・ファイルの名前はカタログ・ファイル名に基づいて設定されます。 たとえば、mycat.xml という名前のフランス語版のログ・メッセージ・カタログでは、<l10n_package>.mycatLogLocalizer_fr_FR.propertiesというプロパティ・ファイルが生成されます。 |
|
いいえ。 |
|
使用される 使用方法: 構文: 例: |
|
はい。 |
次の例は、ログ・メッセージ・カタログ・ファイル内のmessage_catalog
要素の使用方法を示します。
<?xml version="1.0"?> <!DOCTYPE message_catalog PUBLIC "weblogic-locale-message-catalog-dtd" "http://www.bea.com/servers/wls90/dtd/l10n_msgcat.dtd"> <message_catalog l10n_package="programs.utils" version="1.0"> <logmessage messageid="600001"> <messagebody> Could not open file, {0} on {1,date} after {2,number} attempts. </messagebody> <messagedetail> The configuration for this application will be defaulted to factory settings. Custom configuration information resides in file, {0}, created on {1,date}, but is not readable. </messagedetail> <cause> The user is not authorized to use custom configurations. Custom configuration information resides in file, {0}, created on {1,date}, but is not readable.The attempt has been logged to the security log. </cause> <action> The user needs to gain approriate authorization or learn to live with the default settings. </action> </logmessage> </message_catalog>
表H-6ではlogmessage
コンポーネント構成要素の属性が一覧表示されています。
表H-2 logmessage要素の属性
属性 | 説明 | データ型 | 必須? |
---|---|---|---|
|
このログ・メッセージのユニークな識別子。識別子は、すべてのカタログにわたりユニークである必要があります。値は、 使用方法: 値は、 構文: 1桁から6桁の数値。 例: |
|
はい。 |
|
このメッセージの修正管理に使用される日付と時刻のスタンプ。日付は、カタログで動作するユーティリティによって提供されます。 使用方法: 日付はカタログで動作するユーティリティによって提供されます。 構文: |
|
いいえ。 |
次の例は、ログ・メッセージ・カタログ・ファイル内のlogmessage
要素の使用方法を示します。
<?xml version="1.0"?> <!DOCTYPE message_catalog PUBLIC "weblogic-locale-message-catalog-dtd" "http://www.bea.com/servers/wls90/dtd/l10n_msgcat.dtd"> <message_catalog l10n_package="programs.utils" version="1.0"> <logmessage messageid="600001"> <messagebody> Could not open file, {0} on {1,date} after {2,number} attempts. </messagebody> <messagedetail> The configuration for this application will be defaulted to factory settings. Custom configuration information resides in file, {0}, created on {1,date}, but is not readable. </messagedetail> <cause> The user is not authorized to use custom configurations. Custom configuration information resides in file, {0}, created on {1,date}, but is not readable.The attempt has been logged to the security log. </cause> <action> The user needs to gain approriate authorization or learn to live with the default settings. </action> </logmessage> </message_catalog>
次の例は、ログ・メッセージ・カタログ・ファイル内のmessage
要素の使用方法を示します。
<?xml version="1.0"?> <!DOCTYPE message_catalog PUBLIC "weblogic-locale-message-catalog-dtd" "http://www.bea.com/servers/wls90/dtd/l10n_msgcat.dtd"> <locale_message_catalog l10n_package="programs.utils" version="1.0"> <message messageid="FileMenuTitle"> <messagebody> File </messagebody> </message> </message_catalog>
この要素を使用して、簡潔な1行ログ・メッセージの本文を定義します。
次の例は、ログ・メッセージ・カタログ・ファイル内のmessagebody
要素の使用方法を説明します。
<?xml version="1.0"?> <!DOCTYPE message_catalog PUBLIC "weblogic-locale-message-catalog-dtd" "http://www.bea.com/servers/wls90/dtd/l10n_msgcat.dtd"> <message_catalog l10n_package="programs.utils" version="1.0"> <logmessage messageid="600001"> <messagebody> Could not open file, {0} on {1,date} after {2,number} attempts. </messagebody> <messagedetail> The configuration for this application will be defaulted to factory settings. Custom configuration information resides in file, {0}, created on {1,date}, but is not readable. </messagedetail> <cause> The user is not authorized to use custom configurations. Custom configuration information resides in file, {0}, created on {1,date}, but is not readable.The attempt has been logged to the security log. </cause> <action> The user needs to gain approriate authorization or learn to live with the default settings. </action> </logmessage> </message_catalog>
この要素を使用して、ログに記録される問題の詳細な説明を定義します。
次の例は、ログ・メッセージ・カタログ・ファイル内のmessagedetail
要素の使用方法を説明します。
<?xml version="1.0"?> <!DOCTYPE message_catalog PUBLIC "weblogic-locale-message-catalog-dtd" "http://www.bea.com/servers/wls90/dtd/l10n_msgcat.dtd"> <message_catalog l10n_package="programs.utils" version="1.0"> <logmessage messageid="600001"> <messagebody> Could not open file, {0} on {1,date} after {2,number} attempts. </messagebody> <messagedetail> The configuration for this application will be defaulted to factory settings. Custom configuration information resides in file, {0}, created on {1,date}, but is not readable. </messagedetail> <cause> The user is not authorized to use custom configurations. Custom configuration information resides in file, {0}, created on {1,date}, but is not readable.The attempt has been logged to the security log. </cause> <action> The user needs to gain approriate authorization or learn to live with the default settings. </action> </logmessage> </message_catalog>
この要素を使用して、ログに記録される問題の根本的な原因を定義します。
次の例は、ログ・メッセージ・カタログ・ファイル内のcause
要素の使用方法を説明します。
<?xml version="1.0"?> <!DOCTYPE message_catalog PUBLIC "weblogic-locale-message-catalog-dtd" "http://www.bea.com/servers/wls90/dtd/l10n_msgcat.dtd"> <message_catalog l10n_package="programs.utils" version="1.0"> <logmessage messageid="600001"> <messagebody> Could not open file, {0} on {1,date} after {2,number} attempts. </messagebody> <messagedetail> The configuration for this application will be defaulted to factory settings. Custom configuration information resides in file, {0}, created on {1,date}, but is not readable. </messagedetail> <cause> The user is not authorized to use custom configurations. Custom configuration information resides in file, {0}, created on {1,date}, but is not readable.The attempt has been logged to the security log. </cause> <action> The user needs to gain approriate authorization or learn to live with the default settings. </action> </logmessage> </message_catalog>
この要素を使用して、該当する場合に、ログに記録される問題の解決方法を定義します。
次の図は、ログ・メッセージ・カタログ・ファイル内のaction
要素の使用方法を説明します。
<?xml version="1.0"?> <!DOCTYPE message_catalog PUBLIC "weblogic-locale-message-catalog-dtd" "http://www.bea.com/servers/wls90/dtd/l10n_msgcat.dtd"> <message_catalog l10n_package="programs.utils" version="1.0"> <logmessage messageid="600001"> <messagebody> Could not open file, {0} on {1,date} after {2,number} attempts. </messagebody> <messagedetail> The configuration for this application will be defaulted to factory settings. Custom configuration information resides in file, {0}, created on {1,date}, but is not readable. </messagedetail> <cause> The user is not authorized to use custom configurations. Custom configuration information resides in file, {0}, created on {1,date}, but is not readable.The attempt has been logged to the security log. </cause> <action> The user needs to gain approriate authorization or learn to live with the default settings. </action> </logmessage> </message_catalog>