changeset 4589:afd817b006b7

Documentation added.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 29 Nov 2012 10:27:31 +0100
parents 1243531f83ac
children 2729b7346f95
files flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/MetaDataService.java flys-artifacts/src/main/java/de/intevation/flys/exports/ChartGenerator.java
diffstat 2 files changed, 16 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/MetaDataService.java	Wed Nov 28 11:29:04 2012 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/MetaDataService.java	Thu Nov 29 10:27:31 2012 +0100
@@ -104,6 +104,7 @@
         return data;
     }
 
+    /** Return the document containing matched stuff from meta-data.xml. */
     protected Document doService(
         String        artifactId,
         String        userId,
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/ChartGenerator.java	Wed Nov 28 11:29:04 2012 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/ChartGenerator.java	Thu Nov 29 10:27:31 2012 +0100
@@ -495,6 +495,8 @@
     public abstract JFreeChart generateChart();
 
 
+    /** For every outable (i.e. facets), this function is
+     * called and handles the data accordingly. */
     @Override
     public abstract void doOut(
         ArtifactAndFacet bundle,
@@ -699,12 +701,14 @@
     }
 
 
+    /** Sets the master artifact. */
     @Override
     public void setMasterArtifact(Artifact master) {
         this.master = master;
     }
 
 
+    /** Sets the collection. */
     @Override
     public void setCollection(FLYSArtifactCollection collection) {
         this.collection = collection;
@@ -1384,10 +1388,21 @@
     }
 
 
+    /**
+     * Look up \param key in i18n dictionary.
+     * @param key key for which to find i18nd version.
+     * @param def default, returned if lookup failed.
+     * @return value found in i18n dictionary, \param def if no value found.
+     */
     protected String msg(String key, String def) {
         return Resources.getMsg(context.getMeta(), key, def);
     }
 
+    /**
+     * Look up \param key in i18n dictionary.
+     * @param key key for which to find i18nd version.
+     * @return value found in i18n dictionary, key itself if failed.
+     */
     protected String msg(String key) {
         return Resources.getMsg(context.getMeta(), key, key);
     }

http://dive4elements.wald.intevation.org