109110111112113114115116117118119
} public OpenVariable addVariable(String varName, int datatype) { OpenVariable result = new OpenVariable(); result.name=varName; result.datatype=datatype; variablenListe.add(result); generateVariable(result);
120121122123124125126127128129130
return result; } public OpenVariable addParamter(String varName, int datatype) { OpenVariable result = new OpenVariable(); result.name=varName; result.datatype=datatype; parameterDefinitions.add(result); return result; }
164165166167168169170171172173174
public OpenVariable getVariable(String varname) { System.out.println("XXXXXXX Suche nach:"+varname); varname=varname.trim(); OpenVariable node; for (Object variablenListe1 : variablenListe) { node = (OpenVariable) variablenListe1; System.out.println("XXXXXXX var item:"+node.name);
182183184185186187188189190191192
} public void setVariable(String varname,Object value) { OpenVariable o = getVariable(varname); if (o!=null) { if (o.value instanceof Boolean && value instanceof Boolean) { o.value = value;
163164165166167168169170171172173
} public OpenVariable getVariable(String varname) { varname=varname.trim(); OpenVariable node; for (int i=0;i<variablenListe.size();i++) { node= (OpenVariable)variablenListe.get(i); if (varname.equals(node.name.trim()))
179180181182183184185186187188189
101102103104105106107108109110111
} public boolean varNameExist(String varname) { varname=varname.trim(); OpenVariable node; for (int i=0;i<variablenListe.size();i++) { node= (OpenVariable)variablenListe.get(i); if (varname.equals(node.name))
248249250251252253254255256257258
} public int vsGetVariableDT(String varname) { OpenVariable o = getVariable(varname); if (o!=null) { return o.datatype; } else return -1;