comparison artifacts/src/main/java/org/dive4elements/river/exports/ShapeExporter.java @ 6905:1b35b2ddfc28

Artifacts: Introduce ThemeDocument & make stuff compileable again. THIS BREAKS THE SYSTEM! TODO: Move ThemeUtils into ThemeDocument.
author Sascha L. Teichmann <teichmann@intevation.de>
date Thu, 22 Aug 2013 23:31:38 +0200
parents c35323148b98
children 5c6fd2c010dd
comparison
equal deleted inserted replaced
6904:d710bd3df387 6905:1b35b2ddfc28
12 import org.dive4elements.artifacts.CallContext; 12 import org.dive4elements.artifacts.CallContext;
13 import org.dive4elements.artifacts.common.ArtifactNamespaceContext; 13 import org.dive4elements.artifacts.common.ArtifactNamespaceContext;
14 import org.dive4elements.artifacts.common.utils.FileTools; 14 import org.dive4elements.artifacts.common.utils.FileTools;
15 import org.dive4elements.artifacts.common.utils.XMLUtils; 15 import org.dive4elements.artifacts.common.utils.XMLUtils;
16 import org.dive4elements.river.collections.D4EArtifactCollection; 16 import org.dive4elements.river.collections.D4EArtifactCollection;
17 import org.dive4elements.river.themes.ThemeDocument;
17 import org.w3c.dom.Document; 18 import org.w3c.dom.Document;
18 19
19 20
20 public class ShapeExporter implements OutGenerator 21 public class ShapeExporter implements OutGenerator
21 { 22 {
45 public void setCollection(D4EArtifactCollection collection) { 46 public void setCollection(D4EArtifactCollection collection) {
46 this.collection = collection; 47 this.collection = collection;
47 } 48 }
48 49
49 @Override 50 @Override
50 public void doOut(ArtifactAndFacet bundle, Document attr, boolean visible) { 51 public void doOut(ArtifactAndFacet bundle, ThemeDocument attr, boolean visible) {
51 String name = bundle.getFacetName(); 52 String name = bundle.getFacetName();
52 53
53 if (!isFacetValid(name)) { 54 if (!isFacetValid(name)) {
54 logger.debug("Facet '" + name + "' is not valid for this exporter!"); 55 logger.debug("Facet '" + name + "' is not valid for this exporter!");
55 return; 56 return;

http://dive4elements.wald.intevation.org