# HG changeset patch # User Björn Ricks # Date 1350645949 -7200 # Node ID 21f4e4b79121383ac206611e00774cf5e2d41c8d # Parent eba5174198328d6ac44bd39afba14b29fdae4342 Refactor GaugeDischargeCurveFacet to be able to set a facet name For adding another output of the GaugeDischargeCurveArtifact it is necessary to provide to facet instances with different names. Therefore the GaugeDischargeCurveFacet is extended to set the facet name in the constructor. diff -r eba517419832 -r 21f4e4b79121 flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/GaugeDischargeCurveFacet.java --- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/GaugeDischargeCurveFacet.java Fri Oct 19 13:15:17 2012 +0200 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/GaugeDischargeCurveFacet.java Fri Oct 19 13:25:49 2012 +0200 @@ -29,8 +29,8 @@ private static final Logger log = Logger.getLogger(GaugeDischargeCurveFacet.class); - public GaugeDischargeCurveFacet(String description) { - super(0, GAUGE_DISCHARGE_CURVE, description); + public GaugeDischargeCurveFacet(String name, String description) { + super(0, name, description); } @Override @@ -70,6 +70,7 @@ @Override public Facet deepCopy() { GaugeDischargeCurveFacet copy = new GaugeDischargeCurveFacet( + this.name, this.description); copy.set(this); return copy;