Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/importer/AnnotationClassifier.java @ 771:6dc847194625
Removed trailing whitespace.
flys-backend/trunk@2241 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sun, 26 Jun 2011 17:13:53 +0000 |
parents | 33a79496ba9e |
children |
comparison
equal
deleted
inserted
replaced
770:33a79496ba9e | 771:6dc847194625 |
---|---|
120 Element element = (Element)patternList.item(i); | 120 Element element = (Element)patternList.item(i); |
121 Pair pair = buildPair(element); | 121 Pair pair = buildPair(element); |
122 if (pair != null) { | 122 if (pair != null) { |
123 filePatterns.add(pair); | 123 filePatterns.add(pair); |
124 } | 124 } |
125 } | 125 } |
126 } | 126 } |
127 | 127 |
128 protected void buildDescriptionPatterns(Document rules) { | 128 protected void buildDescriptionPatterns(Document rules) { |
129 | 129 |
130 NodeList patternList = (NodeList)XMLUtils.xpath( | 130 NodeList patternList = (NodeList)XMLUtils.xpath( |
142 Element element = (Element)patternList.item(i); | 142 Element element = (Element)patternList.item(i); |
143 Pair pair = buildPair(element); | 143 Pair pair = buildPair(element); |
144 if (pair != null) { | 144 if (pair != null) { |
145 descPatterns.add(pair); | 145 descPatterns.add(pair); |
146 } | 146 } |
147 } | 147 } |
148 } | 148 } |
149 | 149 |
150 protected Pair buildPair(Element element) { | 150 protected Pair buildPair(Element element) { |
151 String pattern = element.getAttribute("pattern"); | 151 String pattern = element.getAttribute("pattern"); |
152 String type = element.getAttribute("type"); | 152 String type = element.getAttribute("type"); |