int PREFIXCOLUMN, String LANGID) {
String arry[] = null;
int lastBoundry = 0;
int nextBoundry;
nextBoundry = input.indexOf(boundry);
Text text = null;
String prefix;
String name;
String type;
StringBuffer textid;
try {
while (nextBoundry != -1) {
text = new Text();
prefix = "";
name = "";
type = "";
textid = new StringBuffer();
String oneRow = input.substring(lastBoundry, nextBoundry);
arry = ValidationHelper.separateToArray(oneRow, separator);
// only try to add variable if more columns than higest used in
// array
// and a name exists for variable
// and type set...
// and table set
// and type = Listbox,Date,Number
if (arry.length > NAMECOLUMN && arry.length > TEXTCOLUMN
&& arry.length > TYPECOLUMN
&& arry[NAMECOLUMN] != null
&& !arry[NAMECOLUMN].toString().equals("")
&& arry[TYPECOLUMN] != null
&& !arry[TYPECOLUMN].toString().equals("")
&& arry[TYPECOLUMN] != null
&& types.containsKey(arry[TYPECOLUMN].toString())) {
if (arry.length > PREFIXCOLUMN && arry[PREFIXCOLUMN] != null) {
prefix = arry[PREFIXCOLUMN].toString();
}
if (arry[NAMECOLUMN] != null) {
name = arry[NAMECOLUMN].toString();
}
if (arry[TYPECOLUMN] != null) {
type = arry[TYPECOLUMN].toString();
}
if (arry[TEXTCOLUMN] != null) {
text.setText(arry[TEXTCOLUMN].toString().replaceAll(
" :", " "));
}
textid.append(prefix);
if(prefix.length() > 0){
textid.append("_");
}
textid.append(name);
if(name.length() > 0){
textid.append("_");
}
textid.append(type);
text.setId(textid.toString());
// sets lang id for this variable
text.setLanguageid(LANGID);
texts.add(text);
}
lastBoundry = nextBoundry;
nextBoundry = input.indexOf(boundry, (lastBoundry + boundry