private void defineSegmentList(List<String> lines) {
String[]columns;
for(String line : lines){
// shall skip the first line if it is a list of column name
columns=KongaStringUtils.split(line);
Segment tmpSegment;
Field tmpField;
String fieldName=columns[3],defaultValue=columns[9],format=columns[10];
int fieldId=Integer.parseInt(columns[1]),
parentId=Integer.parseInt(columns[2]),
sequence=KongaStringUtils.parseInt(columns[4], 0),
varTypeId=KongaStringUtils.parseInt(columns[5], 0),
startPos=KongaStringUtils.parseInt(columns[6], 0),
endPos=KongaStringUtils.parseInt(columns[7], 0),
required=KongaStringUtils.parseInt(columns[8], 0);
String dataType=Field.Variable_TypeTab[varTypeId];
if(dataType.equals("Segment")){ // define a Segment in the ComplexTextStructure
tmpSegment=new Segment(fieldName);
tmpSegment.setId(fieldId);
if(parentId>0){
Segment parent=getSegment(parentId);
if(parent!=null){
tmpSegment.setParentName(parent.getName());
} else {
tmpSegment.setParentName(c_rootName);
parentId=1;
}
}