File tree 1 file changed +8
-1
lines changed
HapiServerBase/src/org/hapiserver/source/tap
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -239,7 +239,7 @@ public static String getInfo(String id) throws IOException {
239
239
String sdata = c .getTextContent ();
240
240
constantData [i ]= sdata ;
241
241
String [] ss = constantData [i ].trim ().split ("\\ s+" );
242
- if ( ss .length >1 ) {
242
+ if ( ss .length >1 ) { // ytags vs constant like time_width.
243
243
JSONObject data = new JSONObject ();
244
244
data .put ( "name" , name );
245
245
JSONArray ja = new JSONArray ();
@@ -325,6 +325,13 @@ public static String getInfo(String id) throws IOException {
325
325
String nodeName = c .getNodeName ();
326
326
String nodeValue = c .getTextContent ();
327
327
switch (c .getNodeName ()) {
328
+ case "DATA" :
329
+ String sdata = c .getTextContent ();
330
+ String [] ss = sdata .trim ().split ("\\ s+" );
331
+ if ( ss .length ==1 ) { // ytags vs constant like time_width.
332
+ parameter .put ("x_constant" , ss [0 ] );
333
+ }
334
+ break ;
328
335
case "PARAMETER_ID" :
329
336
if ( popLabel ) {
330
337
nodeValue = nodeValue .substring (0 ,nodeValue .length ()-2 -id .length ());
You can’t perform that action at this time.
0 commit comments