コード例 #1
0
ファイル: Field12B.java プロジェクト: sprakash1/pw-swift-core
  /**
   * Creates the field parsing the parameter value into fields' components
   *
   * @param value
   */
  public Field12B(String value) {
    this();

    setComponent1(SwiftParseUtils.getTokenFirst(value, ":", "/"));
    setComponent2(SwiftParseUtils.getTokenSecond(value, "/"));
    setComponent3(SwiftParseUtils.getTokenThirdLast(value, "/"));
  }
コード例 #2
0
ファイル: Field92B.java プロジェクト: sprakash1/pw-swift-core
  /**
   * Creates the field parsing the parameter value into fields' components
   *
   * @param value
   */
  public Field92B(String value) {
    this();

    setComponent1(SwiftParseUtils.getTokenFirst(value, ":", "//"));
    String toparse = SwiftParseUtils.getTokenSecondLast(value, "//");
    setComponent2(SwiftParseUtils.getTokenFirst(toparse, "/"));
    setComponent3(SwiftParseUtils.getTokenSecond(toparse, "/"));
    setComponent4(SwiftParseUtils.getTokenThirdLast(toparse, "/"));
  }