クラス GetNCharacterFromHead

すべての実装されたインタフェース:
CommonInterface, jp.ne.mki.wedge.run.interfaces.RuleEngineInterface

public class GetNCharacterFromHead extends AbstractCommon

指定文字数取得


InputRecord に指定された項目の先頭 n 文字を OutputRecord に指定された項目に設定する。 文字数はパラメータで指定する。 パラメータに数値以外の文字列が設定されていたら NumberFormatException が発生する。


[I/O RECORD]

InputRecord OutputRecord
  1. 任意の文字列(複数指定可能)
  1. 指定文字数取得後の文字列(複数指定可能)

[RULE PARAMETER]

Parameter 取得する文字数
バージョン:
1.0
  • コンストラクタの詳細

    • GetNCharacterFromHead

      public GetNCharacterFromHead()
  • メソッドの詳細

    • exit

      public void exit()
      終了処理。保持していた変数などを開放する処理を記述します。
      execute の後に実行されます。
      正常終了・異常終了などに関わらず必ず実行されます。
    • getIOParameter

      public int getIOParameter()
      処理に必要なITEMをI/ORecordより取得。execute の前に実行される。
      入力がNullの場合はERRORを返します。
      戻り値:
      int OK=処理続行、ERROR=異常終了
    • execute

      public int execute()
      先頭より文字列取得する処理を実行します
      戻り値:
      int
    • loopInOutRecordSub

      protected int loopInOutRecordSub(jp.ne.mki.wedge.run.interfaces.DataInterface inItem, jp.ne.mki.wedge.run.interfaces.DataInterface outItem, int index)
      クラスからコピーされた説明: AbstractBase
      loopInOutRecord()から呼び出されるメソッドです。ユーザが任意に記述をします。
      オーバーライド:
      loopInOutRecordSub クラス内 AbstractBase
      パラメータ:
      inItem -
      outItem -
      index -
      戻り値:
      int