# HG changeset patch # User Felix Wolfsteller # Date 1381851530 -7200 # Node ID 3df290c09c2165b74cbf673960502ed6b715ed79 # Parent 6b344b0e5245dba0f39499172b4f652fe1e5a2db BedHeightsArtifact: Use FacetTypes, eliminate local facet type definition. diff -r 6b344b0e5245 -r 3df290c09c21 artifacts/src/main/java/org/dive4elements/river/artifacts/BedHeightsArtifact.java --- a/artifacts/src/main/java/org/dive4elements/river/artifacts/BedHeightsArtifact.java Tue Oct 15 17:31:44 2013 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/BedHeightsArtifact.java Tue Oct 15 17:38:50 2013 +0200 @@ -21,19 +21,21 @@ import org.dive4elements.artifacts.Artifact; import org.dive4elements.artifacts.CallMeta; import org.dive4elements.artifacts.common.utils.XMLUtils; +import org.dive4elements.river.artifacts.model.FacetTypes; import org.dive4elements.river.artifacts.model.minfo.BedHeightFacet; import org.dive4elements.river.artifacts.model.minfo.BedHeightFactory; import org.dive4elements.river.artifacts.states.StaticState; public class BedHeightsArtifact extends AbstractStaticStateArtifact +implements FacetTypes { /** The logger for this class. */ private static Logger logger = Logger.getLogger(BedHeightsArtifact.class); + /** Artifact name. */ private static final String NAME = "bedheights"; - private static final String STATIC_FACET_NAME = "bedheight"; static { // TODO: Move to configuration. @@ -100,7 +102,7 @@ String bedHName = BedHeightFactory.getHeightName(btype, hId); Facet facet = new BedHeightFacet( - STATIC_FACET_NAME, bedHName, type); + BEDHEIGHT, bedHName, type); ArrayList facets = new ArrayList(1); facets.add(facet);