diff gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/services/MetaDataService.java @ 792:9b9bf42b7928

Added and repaired JavaDoc in artifacts package. gnv-artifacts/trunk@874 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 31 Mar 2010 10:52:34 +0000
parents c4156275c1e1
children feae2f9d6c6f
line wrap: on
line diff
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/services/MetaDataService.java	Wed Mar 31 09:30:34 2010 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/services/MetaDataService.java	Wed Mar 31 10:52:34 2010 +0000
@@ -93,9 +93,14 @@
     }
 
     /**
+     * @param data
+     * @param globalContext 
+     * @param callMeta
+     * @return
      * @see de.intevation.artifactdatabase.DefaultService#process(org.w3c.dom.Document, java.lang.Object, de.intevation.artifacts.CallMeta)
      */
     @Override
+    @SuppressWarnings({"static-access", "static-access"})
     public Document process(Document data, Object globalContext,
                             CallMeta callMeta) {
         log.debug("MetaDataService.process");
@@ -107,10 +112,10 @@
                                                       this.getFIS(mapServices));
             document = XMLUtils.newDocument();
             this.writeFIS2Document(document, resultFIS);
-            log.debug(new ArtifactXMLUtilities().writeDocument2String(document));
+            log.debug(ArtifactXMLUtilities.writeDocument2String(document));
         } catch (MetaDataServiceException e) {
             log.error(e,e);
-            document = new ArtifactXMLUtilities()
+            document = ArtifactXMLUtilities
                           .createExceptionReport(e.getMessage(), document);
         }
         return document;
@@ -262,6 +267,7 @@
      * Returns all FIS which Areas is intersected by this given Geometry
      * @param g the Geometry which should be used to determine the FIS.
      * @return all FIS which Areas is intersected by this given Geometry
+     * @throws MetaDataServiceException
      */
     protected Collection<FIS> getFIS(Geometry g)
                                         throws MetaDataServiceException{
@@ -296,6 +302,7 @@
      * Returns all FIS which were represented by the given Mapservices
      * @param mapServices the Mapservices which should determine the FIS.
      * @return all FIS which where represented my the given Mapservices.
+     * @throws MetaDataServiceException
      */
     protected Collection<FIS> getFIS(Collection<MapService> mapServices)
                                               throws MetaDataServiceException{
@@ -417,6 +424,7 @@
         return null;
     }
 
+    @SuppressWarnings("empty-statement")
     private String createLayerQueryString(Collection<Layer> layer){
         log.debug("MetaDataService.createLayerQueryString");
         StringBuffer sb = new StringBuffer();;
@@ -443,6 +451,8 @@
     }
 
     /**
+     * @param factory 
+     * @param globalContext
      * @see de.intevation.artifactdatabase.DefaultService#setup(de.intevation.artifacts.ServiceFactory, java.lang.Object)
      */
     @Override

http://dive4elements.wald.intevation.org