Exemple #1
0
  /**
   * Creates the field parsing the parameter value into fields' components
   *
   * @param value
   */
  public Field50G(String value) {
    this();

    java.util.List<String> lines = SwiftParseUtils.getLines(value);
    if (lines.size() > 0) {
      setComponent1(SwiftParseUtils.getTokenFirst(lines.get(0), "/", null));
    }
    if (lines.size() > 1) {
      setComponent2(lines.get(1));
    }
  }
Exemple #2
0
  /**
   * Creates the field parsing the parameter value into fields' components
   *
   * @param value
   */
  public Field95T(String value) {
    this();

    java.util.List<String> lines = SwiftParseUtils.getLines(value);
    if (lines.size() > 0) {
      String line1 = lines.get(0);
      setComponent1(SwiftParseUtils.getTokenFirst(line1, ":", "//"));
      setComponent2(SwiftParseUtils.getTokenSecondLast(line1, "//"));
    }
    if (lines.size() > 1) {
      setComponent3(lines.get(1));
    }
  }
  /**
   * Creates the field parsing the parameter value into fields' components
   *
   * @param value
   */
  public Field29F(String value) {
    this();

    java.util.List<String> lines = SwiftParseUtils.getLines(value);
    SwiftParseUtils.setComponentsFromLines(this, 1, 35, 0, lines);
  }