comparison artifacts/src/main/java/org/dive4elements/river/artifacts/AnnotationArtifact.java @ 8856:5e38e2924c07 3.2.x

Fix code style.
author Tom Gottfried <tom@intevation.de>
date Thu, 18 Jan 2018 20:12:01 +0100
parents be7864b4fabb
children 0a5239a1e46e
comparison
equal deleted inserted replaced
8855:d7c005e12af0 8856:5e38e2924c07
60 public Boolean isInitialActive( 60 public Boolean isInitialActive(
61 Artifact artifact, 61 Artifact artifact,
62 Facet facet, 62 Facet facet,
63 String output 63 String output
64 ) { 64 ) {
65 if (output.contains(FacetTypes.ChartType.FLSC.toString())) { 65 if (output.contains(
66 FacetTypes.ChartType.FLSC.toString())
67 ) {
66 // Longitudinal section chart 68 // Longitudinal section chart
67 String name = facet.getName(); 69 String name = facet.getName();
68 70
69 if (name.contains(FacetTypes.LONGITUDINAL_ANNOTATION)) { 71 if (name.contains(
72 FacetTypes.LONGITUDINAL_ANNOTATION)
73 ) {
70 return Boolean.FALSE; 74 return Boolean.FALSE;
71 } 75 }
72 } 76 }
73 77
74 return Boolean.TRUE; 78 return Boolean.TRUE;
160 Element root = ProtocolUtils.createRootNode(creator); 164 Element root = ProtocolUtils.createRootNode(creator);
161 description.appendChild(root); 165 description.appendChild(root);
162 166
163 State current = getCurrentState(context); 167 State current = getCurrentState(context);
164 168
165 ProtocolUtils.appendDescribeHeader(creator, root, identifier(), hash()); 169 ProtocolUtils.appendDescribeHeader(
170 creator, root, identifier(), hash());
166 ProtocolUtils.appendState(creator, root, current); 171 ProtocolUtils.appendState(creator, root, current);
167 172
168 Element name = ProtocolUtils.createArtNode( 173 Element name = ProtocolUtils.createArtNode(
169 creator, "name", 174 creator, "name",
170 new String[] { "value" }, 175 new String[] { "value" },
249 if (!generated.isEmpty()) { 254 if (!generated.isEmpty()) {
250 ProtocolUtils.appendOutputModes( 255 ProtocolUtils.appendOutputModes(
251 doc, outs, generated); 256 doc, outs, generated);
252 } 257 }
253 else{ 258 else{
254 log.debug("Cannot append output to generated document."); 259 log.debug(
260 "Cannot append output to generated document.");
255 } 261 }
256 } 262 }
257 else { 263 else {
258 log.debug("No facets found for the current state."); 264 log.debug("No facets found for the current state.");
259 } 265 }

http://dive4elements.wald.intevation.org