Class MessageFormatByResource

java.lang.Object
com.infoteria.asteria.flowengine2.resource.MessageFormatByResource
All Implemented Interfaces:
com.infoteria.asteria.util.resource.MessageFormat

public class MessageFormatByResource extends Object implements com.infoteria.asteria.util.resource.MessageFormat
ResourceBundleを使用するMessageFormatの実装です。
  • Constructor Summary

    Constructors
    Constructor
    Description
    ログに出力する場合のPrefixとResourceBundleを指定して作成するコンストラクタです。
  • Method Summary

    Modifier and Type
    Method
    Description
    format(int code)
    コードに対応するログ出力形式のメッセージを取得します。
    format(int code, Object o1)
    コードに対応するログ出力形式のメッセージを取得します。
    引数のオブジェクトは%xという文字を置換します。
    format(int code, Object o1, Object o2)
    コードに対応するログ出力形式のメッセージを取得します。
    引数のオブジェクトは%xという文字を置換します。
    format(int code, Object o1, Object o2, Object o3)
    コードに対応するログ出力形式のメッセージを取得します。
    引数のオブジェクトは%xという文字を置換します。
    getFormatMessage(int code)
    指定したコードのメッセージを整形して取得します。
    getFormatMessage(int code, Object o1)
    指定したコードのメッセージを整形して取得します。
    getFormatMessage(int code, Object o1, Object o2)
    指定したコードのメッセージを整形して取得します。
    getFormatMessage(int code, Object o1, Object o2, Object o3)
    指定したコードのメッセージを整形して取得します。
    getFormatString(int code)
    指定したコードのメッセージを整形してメッセージ部のみ取得します。
    getFormatString(int code, Object o1)
    指定したコードのメッセージを整形してメッセージ部のみ取得します。
    getFormatString(int code, Object o1, Object o2)
    指定したコードのメッセージを整形してメッセージ部のみ取得します。
    getFormatString(int code, Object o1, Object o2, Object o3)
    指定したコードのメッセージを整形してメッセージ部のみ取得します。
    getMessage(int code)
    コードに対応するメッセージを取得します。
    getMessage(int code, Object o1)
    コードに対応するメッセージを取得します。
    引数のオブジェクトは%xという文字を置換します。
    getMessage(int code, Object o1, Object o2)
    コードに対応するメッセージを取得します。
    引数のオブジェクトは%xという文字を置換します。
    getMessage(int code, Object o1, Object o2, Object o3)
    コードに対応するメッセージを取得します。
    引数のオブジェクトは%xという文字を置換します。

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MessageFormatByResource

      public MessageFormatByResource(String prefix, ResourceBundle resource)
      ログに出力する場合のPrefixとResourceBundleを指定して作成するコンストラクタです。
  • Method Details

    • getMessage

      public String getMessage(int code)
      コードに対応するメッセージを取得します。
      Specified by:
      getMessage in interface com.infoteria.asteria.util.resource.MessageFormat
    • getMessage

      public String getMessage(int code, Object o1)
      コードに対応するメッセージを取得します。
      引数のオブジェクトは%xという文字を置換します。
      Specified by:
      getMessage in interface com.infoteria.asteria.util.resource.MessageFormat
    • getMessage

      public String getMessage(int code, Object o1, Object o2)
      コードに対応するメッセージを取得します。
      引数のオブジェクトは%xという文字を置換します。
      Specified by:
      getMessage in interface com.infoteria.asteria.util.resource.MessageFormat
    • getMessage

      public String getMessage(int code, Object o1, Object o2, Object o3)
      コードに対応するメッセージを取得します。
      引数のオブジェクトは%xという文字を置換します。
      Specified by:
      getMessage in interface com.infoteria.asteria.util.resource.MessageFormat
    • format

      public String format(int code)
      コードに対応するログ出力形式のメッセージを取得します。
      Specified by:
      format in interface com.infoteria.asteria.util.resource.MessageFormat
    • format

      public String format(int code, Object o1)
      コードに対応するログ出力形式のメッセージを取得します。
      引数のオブジェクトは%xという文字を置換します。
      Specified by:
      format in interface com.infoteria.asteria.util.resource.MessageFormat
    • format

      public String format(int code, Object o1, Object o2)
      コードに対応するログ出力形式のメッセージを取得します。
      引数のオブジェクトは%xという文字を置換します。
      Specified by:
      format in interface com.infoteria.asteria.util.resource.MessageFormat
    • format

      public String format(int code, Object o1, Object o2, Object o3)
      コードに対応するログ出力形式のメッセージを取得します。
      引数のオブジェクトは%xという文字を置換します。
      Specified by:
      format in interface com.infoteria.asteria.util.resource.MessageFormat
    • getFormatMessage

      public String getFormatMessage(int code)
      Description copied from interface: com.infoteria.asteria.util.resource.MessageFormat
      指定したコードのメッセージを整形して取得します。
      Specified by:
      getFormatMessage in interface com.infoteria.asteria.util.resource.MessageFormat
    • getFormatMessage

      public String getFormatMessage(int code, Object o1)
      Description copied from interface: com.infoteria.asteria.util.resource.MessageFormat
      指定したコードのメッセージを整形して取得します。
      Specified by:
      getFormatMessage in interface com.infoteria.asteria.util.resource.MessageFormat
    • getFormatMessage

      public String getFormatMessage(int code, Object o1, Object o2)
      Description copied from interface: com.infoteria.asteria.util.resource.MessageFormat
      指定したコードのメッセージを整形して取得します。
      Specified by:
      getFormatMessage in interface com.infoteria.asteria.util.resource.MessageFormat
    • getFormatMessage

      public String getFormatMessage(int code, Object o1, Object o2, Object o3)
      Description copied from interface: com.infoteria.asteria.util.resource.MessageFormat
      指定したコードのメッセージを整形して取得します。
      Specified by:
      getFormatMessage in interface com.infoteria.asteria.util.resource.MessageFormat
    • getFormatString

      public String getFormatString(int code)
      Description copied from interface: com.infoteria.asteria.util.resource.MessageFormat
      指定したコードのメッセージを整形してメッセージ部のみ取得します。
      Specified by:
      getFormatString in interface com.infoteria.asteria.util.resource.MessageFormat
    • getFormatString

      public String getFormatString(int code, Object o1)
      Description copied from interface: com.infoteria.asteria.util.resource.MessageFormat
      指定したコードのメッセージを整形してメッセージ部のみ取得します。
      Specified by:
      getFormatString in interface com.infoteria.asteria.util.resource.MessageFormat
    • getFormatString

      public String getFormatString(int code, Object o1, Object o2)
      Description copied from interface: com.infoteria.asteria.util.resource.MessageFormat
      指定したコードのメッセージを整形してメッセージ部のみ取得します。
      Specified by:
      getFormatString in interface com.infoteria.asteria.util.resource.MessageFormat
    • getFormatString

      public String getFormatString(int code, Object o1, Object o2, Object o3)
      Description copied from interface: com.infoteria.asteria.util.resource.MessageFormat
      指定したコードのメッセージを整形してメッセージ部のみ取得します。
      Specified by:
      getFormatString in interface com.infoteria.asteria.util.resource.MessageFormat