changeset 512:ff79b8df9aa6

Added getter and setter for name in artifact interface and default artifact.
author Raimund Renkert <rrenkert@intevation.de>
date Wed, 30 Apr 2014 15:04:14 +0200
parents 08c82b4e8b58
children 69f99bdf3d65
files artifact-database/src/main/java/org/dive4elements/artifactdatabase/DefaultArtifact.java artifacts/src/main/java/org/dive4elements/artifacts/Artifact.java
diffstat 2 files changed, 28 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/artifact-database/src/main/java/org/dive4elements/artifactdatabase/DefaultArtifact.java	Fri Dec 20 13:09:32 2013 +0100
+++ b/artifact-database/src/main/java/org/dive4elements/artifactdatabase/DefaultArtifact.java	Wed Apr 30 15:04:14 2014 +0200
@@ -36,6 +36,11 @@
      */
     protected String identifier;
 
+    /**
+     * The name of the artifact.
+     */
+    protected String name;
+
 
     /**
      * Default constructor.
@@ -138,5 +143,17 @@
             logger.debug("DefaultArtifact.cleanup: " + identifier);
         }
     }
+
+
+    @Override
+    public String getName() {
+        return name;
+    }
+
+
+    @Override
+    public void setName(String name) {
+        this.name = name;
+    }
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :
--- a/artifacts/src/main/java/org/dive4elements/artifacts/Artifact.java	Fri Dec 20 13:09:32 2013 +0100
+++ b/artifacts/src/main/java/org/dive4elements/artifacts/Artifact.java	Wed Apr 30 15:04:14 2014 +0200
@@ -46,6 +46,17 @@
 public interface Artifact
 extends          Serializable
 {
+    /**
+     * The artifact name.
+     * @return The name of the artifact.
+     */
+    public String getName();
+
+    /**
+     * Set the artifact name.
+     * @param name The name of the artifact.
+     */
+    public void setName(String name);
 
     /**
      * Set a new identifier for this artifact.

http://dive4elements.wald.intevation.org