# HG changeset patch # User Tim Englich # Date 1271160615 0 # Node ID d4d1eb56d725d1ae1825a638c7e7349ec9589fd2 # Parent 22567e7fa38151b529eb4e1e9b5f413fc92688c5 Added more JavaDocs gnv/trunk@919 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 22567e7fa381 -r d4d1eb56d725 gnv/ChangeLog --- a/gnv/ChangeLog Tue Apr 13 08:47:40 2010 +0000 +++ b/gnv/ChangeLog Tue Apr 13 12:10:15 2010 +0000 @@ -1,3 +1,12 @@ +2010-04-13 Tim Englich + + * src/main/java/de/intevation/gnv/artifactdatabase/objects/ArtifactFactory.java, + src/main/java/de/intevation/gnv/artifactdatabase/objects/ArtifactStatisticValue.java, + src/main/java/de/intevation/gnv/artifactdatabase/objects/DefaultArtifactStatisticValue.java, + src/main/java/de/intevation/gnv/artifactdatabase/objects/ParametrizedArtifactFactory.java, + src/main/java/de/intevation/gnv/artifactdatabase/objects/ParametrizedArtifactObject.java : + Added more Javadocs. + 2010-04-13 Ingo Weinzierl * src/main/java/de/intevation/gnv/artifactdatabase/objects/package.html, diff -r 22567e7fa381 -r d4d1eb56d725 gnv/src/main/java/de/intevation/gnv/artifactdatabase/objects/ArtifactFactory.java --- a/gnv/src/main/java/de/intevation/gnv/artifactdatabase/objects/ArtifactFactory.java Tue Apr 13 08:47:40 2010 +0000 +++ b/gnv/src/main/java/de/intevation/gnv/artifactdatabase/objects/ArtifactFactory.java Tue Apr 13 12:10:15 2010 +0000 @@ -29,10 +29,9 @@ /** * Constructor - * - * @param name - * @param description - * @param dataBaseUrl + * @param name the name of the factory + * @param description the description of the Factory + * @param dataBaseUrl the URL where the Factory could be reached. */ public ArtifactFactory(String name, String description, String dataBaseUrl) { super(); diff -r 22567e7fa381 -r d4d1eb56d725 gnv/src/main/java/de/intevation/gnv/artifactdatabase/objects/ArtifactStatisticValue.java --- a/gnv/src/main/java/de/intevation/gnv/artifactdatabase/objects/ArtifactStatisticValue.java Tue Apr 13 08:47:40 2010 +0000 +++ b/gnv/src/main/java/de/intevation/gnv/artifactdatabase/objects/ArtifactStatisticValue.java Tue Apr 13 12:10:15 2010 +0000 @@ -3,13 +3,23 @@ import java.io.Serializable; /** + * This is the Interfacedefinition for Statistic values that belongs + * to an Artifact. * @author Tim Englich * */ public interface ArtifactStatisticValue extends Serializable { + /** + * Returns the Key of the Object + * @return the Key of the Object + */ String getKey(); + /** + * Returns the stored Value + * @return the stored Value + */ String getValue(); } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 : \ No newline at end of file diff -r 22567e7fa381 -r d4d1eb56d725 gnv/src/main/java/de/intevation/gnv/artifactdatabase/objects/DefaultArtifactStatisticValue.java --- a/gnv/src/main/java/de/intevation/gnv/artifactdatabase/objects/DefaultArtifactStatisticValue.java Tue Apr 13 08:47:40 2010 +0000 +++ b/gnv/src/main/java/de/intevation/gnv/artifactdatabase/objects/DefaultArtifactStatisticValue.java Tue Apr 13 12:10:15 2010 +0000 @@ -1,6 +1,7 @@ package de.intevation.gnv.artifactdatabase.objects; /** + * The Defaultimplementation of ArtifactStatisticValue * @author Tim Englich * */ @@ -15,6 +16,11 @@ private String value = null; + /** + * Constructor + * @param key the key of the new Value + * @param value the value of the Object. + */ public DefaultArtifactStatisticValue(String key, String value) { super(); this.key = key; @@ -28,5 +34,4 @@ public String getValue() { return this.value; } - } diff -r 22567e7fa381 -r d4d1eb56d725 gnv/src/main/java/de/intevation/gnv/artifactdatabase/objects/ParametrizedArtifactFactory.java --- a/gnv/src/main/java/de/intevation/gnv/artifactdatabase/objects/ParametrizedArtifactFactory.java Tue Apr 13 08:47:40 2010 +0000 +++ b/gnv/src/main/java/de/intevation/gnv/artifactdatabase/objects/ParametrizedArtifactFactory.java Tue Apr 13 12:10:15 2010 +0000 @@ -5,6 +5,9 @@ import java.util.Map; /** + * This Class is an Extention of the Class ArtifactFactory. + * Its only job is to store optional Parameters that might be + * used to instantiate a new Artifact. * @author Tim Englich */ public class ParametrizedArtifactFactory @@ -15,13 +18,17 @@ */ private static final long serialVersionUID = 4516368434861819032L; + /** + * The Parameters that belongs to the Artifactfactory and might be used + * during the Initializationprocess of an Artifact. + */ private Map> parameters = null; /** * Constructor - * @param name - * @param description - * @param dataBaseUrl + * @param name the name of the factory + * @param description the description of the Factory + * @param dataBaseUrl the URL where the Factory could be reached. */ public ParametrizedArtifactFactory(String name, String description, String dataBaseUrl) { diff -r 22567e7fa381 -r d4d1eb56d725 gnv/src/main/java/de/intevation/gnv/artifactdatabase/objects/ParametrizedArtifactObject.java --- a/gnv/src/main/java/de/intevation/gnv/artifactdatabase/objects/ParametrizedArtifactObject.java Tue Apr 13 08:47:40 2010 +0000 +++ b/gnv/src/main/java/de/intevation/gnv/artifactdatabase/objects/ParametrizedArtifactObject.java Tue Apr 13 12:10:15 2010 +0000 @@ -4,6 +4,9 @@ import java.util.Map; /** + * Interface which extends the funtionality of the Interface + * ArtifactObject with methods for storing and retrieving + * optional Parameters. * @author Tim Englich */ public interface ParametrizedArtifactObject extends ArtifactObject { @@ -18,8 +21,8 @@ /** * Add a further parameter to the parameter map. * - * @param key - * @param values + * @param key the Key of the Parameter (unique) + * @param values the Values of the Parameter */ void addParameters(String key, Collection values); }