1 25 package org.ofbiz.datafile; 26 27 28 import java.util.*; 29 30 31 38 39 public class ModelDataFile { 40 41 public static final String SEP_FIXED_LENGTH = "fixed-length"; 42 public static final String SEP_FIXED_RECORD = "fixed-record"; 43 public static final String SEP_DELIMITED = "delimited"; 44 45 46 public String name = ""; 47 48 49 public String typeCode = ""; 50 51 52 public String sender = ""; 53 54 55 public String receiver = ""; 56 57 58 public int recordLength = -1; 59 60 61 public char delimiter = '|'; 62 63 64 public String separatorStyle = ""; 65 66 67 public String description = ""; 68 69 70 public List records = new ArrayList(); 71 72 public ModelRecord getModelRecord(String recordName) { 73 for (int i = 0; i < records.size(); i++) { 74 ModelRecord curRecord = (ModelRecord) records.get(i); 75 76 if (curRecord.name.equals(recordName)) { 77 return curRecord; 78 } 79 } 80 return null; 81 } 82 } 83 | Popular Tags |