Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/datacage/templating/Builder.java @ 6077:c7777feea223
Datacage: Introduced <dc:message>This is my message!</dc:message>. The message are logged at INFO level to help debugging.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Thu, 23 May 2013 17:31:26 +0200 |
parents | 06450ef553cc |
children | 4bd8bbbcdf68 |
comparison
equal
deleted
inserted
replaced
6076:c97d003fd127 | 6077:c7777feea223 |
---|---|
575 log.debug("dc:text"); | 575 log.debug("dc:text"); |
576 String value = expand(current.getTextContent()); | 576 String value = expand(current.getTextContent()); |
577 parent.appendChild(owner.createTextNode(value)); | 577 parent.appendChild(owner.createTextNode(value)); |
578 } | 578 } |
579 | 579 |
580 protected void message(Node parent, Element current) | |
581 throws SQLException | |
582 { | |
583 log.debug("dc:message"); | |
584 if (log.isInfoEnabled()) { | |
585 String value = expand(current.getTextContent()); | |
586 log.info("MESSAGE: " + value); | |
587 } | |
588 } | |
589 | |
580 /** | 590 /** |
581 * Add attribute to an element | 591 * Add attribute to an element |
582 * @see Element | 592 * @see Element |
583 */ | 593 */ |
584 protected void attribute(Node parent, Element current) { | 594 protected void attribute(Node parent, Element current) { |
890 else if ("group".equals(localName)) { | 900 else if ("group".equals(localName)) { |
891 group(parent, curr); | 901 group(parent, curr); |
892 } | 902 } |
893 else if ("text".equals(localName)) { | 903 else if ("text".equals(localName)) { |
894 text(parent, curr); | 904 text(parent, curr); |
905 } | |
906 else if ("message".equals(localName)) { | |
907 message(parent, curr); | |
895 } | 908 } |
896 else if ("variable".equals(localName)) { | 909 else if ("variable".equals(localName)) { |
897 variable(curr); | 910 variable(curr); |
898 } | 911 } |
899 else if ("convert".equals(localName)) { | 912 else if ("convert".equals(localName)) { |