Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/EmptyFacet.java @ 3318:dbe2f85bf160
merged flys-artifacts/2.8
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:14:35 +0200 |
parents | e8fc770d2f8c |
children |
comparison
equal
deleted
inserted
replaced
2987:98c7a46ec5ae | 3318:dbe2f85bf160 |
---|---|
1 package de.intevation.flys.artifacts.model; | |
2 | |
3 import de.intevation.artifacts.Artifact; | |
4 import de.intevation.artifacts.CallContext; | |
5 | |
6 import de.intevation.artifactdatabase.state.DefaultFacet; | |
7 import de.intevation.artifactdatabase.state.Facet; | |
8 | |
9 public class EmptyFacet | |
10 extends DefaultFacet | |
11 { | |
12 /** Trivial constructor. */ | |
13 public EmptyFacet() { | |
14 super(0, "empty.facet", "empty.facet"); | |
15 } | |
16 | |
17 @Override | |
18 public Object getData(Artifact artifact, CallContext context) { | |
19 return null; | |
20 } | |
21 | |
22 | |
23 /** | |
24 * Return a deep copy. | |
25 */ | |
26 @Override | |
27 public Facet deepCopy() { | |
28 EmptyFacet copy = new EmptyFacet(); | |
29 copy.set(this); | |
30 return copy; | |
31 } | |
32 } | |
33 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 : |