Changeset 565 for DCWoRMS/trunk/src
- Timestamp:
- 11/07/12 09:13:15 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/trunk/src/test/DEBBTranslator/src/DEBB2DCWoRMSTranslator.java
r564 r565 108 108 rootElement.appendChild(resourcesElement); 109 109 110 //***************************************************************** 110 111 // Creating (main) scheduler element 111 112 // TODO: Fill scheduler with reasonable data! … … 116 117 resourcesElement.appendChild(schedulerElement); 117 118 119 //***************************************************************** 118 120 // Transform top level DEBB and all nested DEBBs 119 121 transformDEBB(plmxmlDocument, dcwormsDocument, resourcesElement, … … 235 237 236 238 // Find DEBB with given id and transform it 239 //***************************************************************** 237 240 // 1) ProductInstance - 238 241 XPathExpression expr = xpath … … 259 262 Node debbSequence = (Node) result; 260 263 264 // UserData - label 265 expr = xpath 266 .compile("plm:UserData/plm:UserValue[@title='label']/@value"); 267 result = expr.evaluate(productInstance, XPathConstants.NODE); 268 Node debbLabel = (Node) result; 269 270 // UserData - location 271 expr = xpath 272 .compile("plm:UserData/plm:UserValue[@title='location']/@value"); 273 result = expr.evaluate(productInstance, XPathConstants.NODE); 274 Node debbLocation = (Node) result; 275 276 //***************************************************************** 261 277 // 2) ProductRevisionView 262 278 expr = xpath … … 268 284 // System.out.println("name=" + debbName.getNodeValue()); 269 285 270 // 3)UserValue (to extract DEBB name, level or DEBBComponent file)286 // UserValue (to extract DEBB name, level or DEBBComponent file) 271 287 // DEBBComponentId 272 288 expr = xpath … … 299 315 System.out.println("debbComponentFileName=" + debbComponentFileName); 300 316 317 //***************************************************************** 301 318 // Add computingResource element for the DEBB 302 319 if (debbLevel != null) { … … 316 333 // TODO: Where to use this hostname information? 317 334 Comment comment = dcwormsDocument.createComment("Host name " 318 + debbHostName );335 + debbHostName.getNodeValue()); 319 336 computingResourceElement.appendChild(comment); 320 337 } … … 327 344 debbParentElement.appendChild(computingResourceElement); 328 345 346 if (debbLabel != null) { 347 // TODO: Where to use this label information? 348 Comment comment = dcwormsDocument.createComment("Label " 349 + debbLabel.getNodeValue()); 350 computingResourceElement.appendChild(comment); 351 } 352 353 if (debbLocation != null) { 354 // TODO: Where to use this location information? 355 Comment comment = dcwormsDocument.createComment("Location " 356 + debbLocation.getNodeValue()); 357 computingResourceElement.appendChild(comment); 358 } 359 360 //***************************************************************** 329 361 // Get nested instances - nested DEBBs and ask them to transform 330 362 // themselves
Note: See TracChangeset
for help on using the changeset viewer.