comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/datacage/templating/Builder.java @ 1029:3f3988bb6284

Picky Cosmetics. flys-artifacts/trunk@2489 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 11 Aug 2011 13:03:41 +0000
parents 5cb84ceee2a0
children 3ca999f507b7
comparison
equal deleted inserted replaced
1028:10bafb4f46cc 1029:3f3988bb6284
462 } 462 }
463 else if ("call-macro".equals(localName)) { 463 else if ("call-macro".equals(localName)) {
464 callMacro(parent, (Element)current); 464 callMacro(parent, (Element)current);
465 } 465 }
466 else if ("macro".equals(localName)) { 466 else if ("macro".equals(localName)) {
467 // simply ignore the definition. 467 // Simply ignore the definition.
468 } 468 }
469 else if ("element".equals(localName)) { 469 else if ("element".equals(localName)) {
470 element(parent, (Element)current); 470 element(parent, (Element)current);
471 } 471 }
472 else if ("elements".equals(localName)) { 472 else if ("elements".equals(localName)) {
527 String stmnt = trimStatement(stmntElement.getTextContent()); 527 String stmnt = trimStatement(stmntElement.getTextContent());
528 if (stmnt == null || stmnt.length() == 0) { 528 if (stmnt == null || stmnt.length() == 0) {
529 throw new IllegalArgumentException("found empty statement"); 529 throw new IllegalArgumentException("found empty statement");
530 } 530 }
531 CompiledStatement cs = new CompiledStatement(stmnt); 531 CompiledStatement cs = new CompiledStatement(stmnt);
532 // for faster lookup store a shortend string into the template 532 // For faster lookup store a shortend string into the template.
533 stmnt = "s" + i; 533 stmnt = "s" + i;
534 stmntElement.setTextContent(stmnt); 534 stmntElement.setTextContent(stmnt);
535 compiledStatements.put(stmnt, cs); 535 compiledStatements.put(stmnt, cs);
536 } 536 }
537 } 537 }

http://dive4elements.wald.intevation.org