1 package org.kuali.ole.sys.batch; 2 3 import org.kuali.rice.kns.service.KNSServiceLocator; 4 5 /** 6 * The FixedWidthFlatFilePropertySpecification is used to 7 * specify details relating to record in the given line of the input file. 8 */ 9 public class FixedWidthFlatFilePropertySpecification extends AbstractFlatFilePropertySpecificationBase { 10 protected int start; 11 protected int end; 12 13 /** 14 * @return the beginning index of the substring to parse 15 */ 16 public int getStart() { 17 return start; 18 } 19 20 /** 21 * Sets the beginning index of the substring to parse 22 * @param start the beginning index of the substring to parse 23 */ 24 public void setStart(int start) { 25 this.start = start; 26 } 27 28 /** 29 * @return the ending index of the substring to parse; if empty, line will be parsed to end of String 30 */ 31 public int getEnd() { 32 return end; 33 } 34 35 /** 36 * Sets the ending index of the substring to parse; if not set, line will be parsed to end of String 37 * @param end the ending index of the substring to parse 38 */ 39 public void setEnd(int end) { 40 this.end = end; 41 } 42 }