teichmann@5863: /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde teichmann@5863: * Software engineering by Intevation GmbH teichmann@5863: * teichmann@5863: * This file is Free Software under the GNU AGPL (>=v3) teichmann@5863: * and comes with ABSOLUTELY NO WARRANTY! Check out the teichmann@5863: * documentation coming with Dive4Elements River for details. teichmann@5863: */ teichmann@5863: teichmann@5831: package org.dive4elements.river.artifacts.model; raimund@2132: teichmann@5831: import org.dive4elements.artifacts.Artifact; teichmann@5831: import org.dive4elements.artifacts.CallContext; raimund@2132: teichmann@5831: import org.dive4elements.artifactdatabase.state.DefaultFacet; teichmann@5831: import org.dive4elements.artifactdatabase.state.Facet; raimund@2132: raimund@2132: public class EmptyFacet raimund@2132: extends DefaultFacet raimund@2132: { raimund@2132: /** Trivial constructor. */ raimund@2132: public EmptyFacet() { raimund@2132: super(0, "empty.facet", "empty.facet"); raimund@2132: } raimund@2132: raimund@2132: @Override raimund@2132: public Object getData(Artifact artifact, CallContext context) { raimund@2132: return null; raimund@2132: } raimund@2132: raimund@2132: raimund@2132: /** raimund@2132: * Return a deep copy. raimund@2132: */ raimund@2132: @Override raimund@2132: public Facet deepCopy() { raimund@2132: EmptyFacet copy = new EmptyFacet(); raimund@2132: copy.set(this); raimund@2132: return copy; raimund@2132: } raimund@2132: } raimund@2132: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :