Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/AnnotationArtifact.java @ 5867:59ff03ff48f1
River artifacts: Renamed FLYSArtifact(Collection) to D4EArtifact(Collection).
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Sun, 28 Apr 2013 15:23:01 +0200 |
parents | 9a6741ccf6d4 |
children | af13ceeba52a |
comparison
equal
deleted
inserted
replaced
5866:9a6741ccf6d4 | 5867:59ff03ff48f1 |
---|---|
40 | 40 |
41 /** | 41 /** |
42 * Artifact to access names of Points Of Interest along a segment of a river. | 42 * Artifact to access names of Points Of Interest along a segment of a river. |
43 */ | 43 */ |
44 public class AnnotationArtifact | 44 public class AnnotationArtifact |
45 extends StaticFLYSArtifact | 45 extends StaticD4EArtifact |
46 implements FacetTypes { | 46 implements FacetTypes { |
47 | 47 |
48 /** The logger for this class. */ | 48 /** The logger for this class. */ |
49 private static Logger logger = Logger.getLogger(AnnotationArtifact.class); | 49 private static Logger logger = Logger.getLogger(AnnotationArtifact.class); |
50 | 50 |
84 Object context, | 84 Object context, |
85 CallMeta callMeta, | 85 CallMeta callMeta, |
86 Document data) | 86 Document data) |
87 { | 87 { |
88 logger.debug("AnnotationArtifact.setup"); | 88 logger.debug("AnnotationArtifact.setup"); |
89 String filter = StaticFLYSArtifact.getDatacageIDValue(data); | 89 String filter = StaticD4EArtifact.getDatacageIDValue(data); |
90 String[] splits = filter.split(":"); | 90 String[] splits = filter.split(":"); |
91 if (splits.length > 1) { | 91 if (splits.length > 1) { |
92 addStringData("nameFilter", splits[1]); | 92 addStringData("nameFilter", splits[1]); |
93 } | 93 } |
94 super.setup(identifier, factory, context, callMeta, data); | 94 super.setup(identifier, factory, context, callMeta, data); |
100 protected void initialize(Artifact artifact, Object context, | 100 protected void initialize(Artifact artifact, Object context, |
101 CallMeta meta) { | 101 CallMeta meta) { |
102 logger.debug("AnnotationArtifact.initialize, id: " | 102 logger.debug("AnnotationArtifact.initialize, id: " |
103 + artifact.identifier()); | 103 + artifact.identifier()); |
104 | 104 |
105 FLYSArtifact flys = (FLYSArtifact) artifact; | 105 D4EArtifact flys = (D4EArtifact) artifact; |
106 // TODO issue880: make annotations available _per type_ | 106 // TODO issue880: make annotations available _per type_ |
107 importData(flys, "river"); | 107 importData(flys, "river"); |
108 | 108 |
109 List<Facet> fs = new ArrayList<Facet>(); | 109 List<Facet> fs = new ArrayList<Facet>(); |
110 | 110 |