Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/datacage/templating/Builder.java @ 4897:9c388de4b4d5
Builder: Doc, comments.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Tue, 29 Jan 2013 11:49:37 +0100 |
parents | 27d58b7b5edd |
children | 2cec81e697e8 e60f65540cc2 |
comparison
equal
deleted
inserted
replaced
4896:27d58b7b5edd | 4897:9c388de4b4d5 |
---|---|
30 import org.w3c.dom.Element; | 30 import org.w3c.dom.Element; |
31 import org.w3c.dom.Node; | 31 import org.w3c.dom.Node; |
32 import org.w3c.dom.NodeList; | 32 import org.w3c.dom.NodeList; |
33 | 33 |
34 | 34 |
35 /** Handles and evaluate meta-data template against dbs. */ | |
35 public class Builder | 36 public class Builder |
36 { | 37 { |
37 private static Logger log = Logger.getLogger(Builder.class); | 38 private static Logger log = Logger.getLogger(Builder.class); |
38 | 39 |
39 public static final String CONNECTION_USER = "user"; | 40 public static final String CONNECTION_USER = "user"; |
134 statements.clear(); | 135 statements.clear(); |
135 } | 136 } |
136 | 137 |
137 /** | 138 /** |
138 * Return first statement node in NodeList, respecting | 139 * Return first statement node in NodeList, respecting |
139 * macros. | 140 * macros but not doing evaluation (e.g. of <dc:if>s). |
140 */ | 141 */ |
141 private Node findStatementNode(NodeList nodes) { | 142 private Node findStatementNode(NodeList nodes) { |
142 int S = nodes.getLength(); | 143 int S = nodes.getLength(); |
143 | 144 |
144 // Check direct children and take special care of macros. | 145 // Check direct children and take special care of macros. |