Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/CrossSectionWaterLineFacet.java @ 1190:f514894ec2fd
merged flys-artifacts/2.5
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:14:17 +0200 |
parents | fbe18ad4caff |
children | 26d7077e42d2 |
comparison
equal
deleted
inserted
replaced
917:b48c36076e17 | 1190:f514894ec2fd |
---|---|
1 package de.intevation.flys.artifacts.model; | |
2 | |
3 import org.apache.log4j.Logger; | |
4 | |
5 import de.intevation.artifacts.Artifact; | |
6 import de.intevation.artifacts.CallContext; | |
7 | |
8 import de.intevation.artifactdatabase.state.DefaultFacet; | |
9 import de.intevation.artifactdatabase.state.Facet; | |
10 | |
11 import de.intevation.flys.artifacts.WINFOArtifact; | |
12 | |
13 | |
14 /** | |
15 * Facet for Waterlines in Cross Sections. | |
16 */ | |
17 public class CrossSectionWaterLineFacet | |
18 extends DefaultFacet | |
19 implements FacetTypes { | |
20 | |
21 private static Logger logger = Logger.getLogger(CrossSectionWaterLineFacet.class); | |
22 | |
23 | |
24 /** Trivial constructor, set (maybe localized) description. */ | |
25 public CrossSectionWaterLineFacet(String description) { | |
26 super(0, CROSS_SECTION_WATER_LINE, description); | |
27 } | |
28 | |
29 | |
30 /** | |
31 * Gets dummy data. | |
32 */ | |
33 public Object getData(Artifact artifact, CallContext context) { | |
34 logger.debug("Get data for cross section water line"); | |
35 | |
36 WINFOArtifact winfo = (WINFOArtifact)artifact; | |
37 | |
38 return winfo.getWaterLines(); | |
39 } | |
40 | |
41 | |
42 /** Do a deep copy. */ | |
43 @Override | |
44 public Facet deepCopy() { | |
45 CrossSectionWaterLineFacet copy = new CrossSectionWaterLineFacet(this.description); | |
46 copy.set(this); | |
47 return copy; | |
48 } | |
49 } | |
50 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | |
51 |