# HG changeset patch # User Raimund Renkert # Date 1398863054 -7200 # Node ID ff79b8df9aa6c097393877b1f5389fa72061d743 # Parent 08c82b4e8b58ea48e6d6aa061279f646a73b034a Added getter and setter for name in artifact interface and default artifact. diff -r 08c82b4e8b58 -r ff79b8df9aa6 artifact-database/src/main/java/org/dive4elements/artifactdatabase/DefaultArtifact.java --- 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 : diff -r 08c82b4e8b58 -r ff79b8df9aa6 artifacts/src/main/java/org/dive4elements/artifacts/Artifact.java --- 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.