예제 #1
0
파일: Field50G.java 프로젝트: DhruboB/wife
  /**
   * 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));
    }
  }
예제 #2
0
파일: Field95T.java 프로젝트: DhruboB/wife
  /**
   * 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));
    }
  }
예제 #3
0
  /**
   * 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);
  }