- String tempId = st.nextToken();
- String fastaMapping = st.nextToken();
- String confidence = !st.hasMoreTokens() ? "" : 100
- * Double.valueOf(st.nextToken()) + "";
- String pid = !st.hasMoreTokens() ? "" : st.nextToken();
- String alignRange = !st.hasMoreTokens() ? "" : st.nextToken()
- + "-" + st.nextToken();
- String otherInfo = !st.hasMoreTokens() ? "" : st.nextToken();
- String coverage = "";
- if (add_structmodel(al, querySeq, refSeq, tempId,
- fastaMapping,
- alignRange, coverage,
- confidence, pid, otherInfo))
+ int tSize = st.countTokens() + 2;
+ String[] rowData = new String[tSize];
+ rowData[0] = querySeqId;
+ rowData[1] = refSeqId;
+ for (int x = 2; x < tSize; x++)
+ {
+ rowData[x] = st.nextToken();
+ }
+ if (processStructModel(al, querySeq, refSeq,
+ StructModelHeader, rowData, baseUri))