[Dive4elements-commits] [PATCH 5 of 8] Changed visiblitiy of some methods. TODO: A lot of refactoring

Wald Commits scm-commit at wald.intevation.org
Thu Mar 14 17:27:33 CET 2013


# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1363277921 -3600
# Node ID b55975761708506c190453ba4a9f355334bb3a5e
# Parent  7712dacc27ab7ba4c77ba004138582ac385006fc
Changed visiblitiy of some methods. TODO: A lot of refactoring.
A lot of functions may be moved to Utils.

diff -r 7712dacc27ab -r b55975761708 flys-artifacts/src/main/java/de/intevation/flys/utils/ArtifactMapfileGenerator.java
--- a/flys-artifacts/src/main/java/de/intevation/flys/utils/ArtifactMapfileGenerator.java	Thu Mar 14 17:16:15 2013 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/utils/ArtifactMapfileGenerator.java	Thu Mar 14 17:18:41 2013 +0100
@@ -35,7 +35,7 @@
     }
 
     @Override
-    protected String getMapserverUrl() {
+    public String getMapserverUrl() {
         return FLYSUtils.getXPathString(FLYSUtils.XPATH_FLOODMAP_MAPSERVER_URL);
     }
 
diff -r 7712dacc27ab -r b55975761708 flys-artifacts/src/main/java/de/intevation/flys/utils/MapfileGenerator.java
--- a/flys-artifacts/src/main/java/de/intevation/flys/utils/MapfileGenerator.java	Thu Mar 14 17:16:15 2013 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/utils/MapfileGenerator.java	Thu Mar 14 17:18:41 2013 +0100
@@ -123,7 +123,7 @@
 
     protected abstract String getMapserverTemplatePath();
 
-    protected abstract String getMapserverUrl();
+    public abstract String getMapserverUrl();
 
     protected VelocityContext getVelocityContext() {
         VelocityContext context = new VelocityContext();
@@ -155,7 +155,7 @@
      * @param model The name of the template.
      * @return a template.
      */
-    protected Template getTemplateByName(String model) {
+    public Template getTemplateByName(String model) {
         if (model.indexOf(".vm") < 0) {
             model = model.concat(".vm");
         }
@@ -277,7 +277,7 @@
      * @param tpl The Velocity template which is used to create the LAYER
      * section.
      */
-    protected void writeLayer(
+    public void writeLayer(
         LayerInfo layerInfo,
         File      layerFile,
         Template  tpl
@@ -326,7 +326,7 @@
      *
      * @param layers Layer information.
      */
-    protected void writeMapfile(List<String> layers) {
+    public void writeMapfile(List<String> layers) {
         String tmpMapName = "mapfile" + new Date().getTime();
 
         File mapfile = new File(getMapfilePath());
diff -r 7712dacc27ab -r b55975761708 flys-artifacts/src/main/java/de/intevation/flys/utils/RiverMapfileGenerator.java
--- a/flys-artifacts/src/main/java/de/intevation/flys/utils/RiverMapfileGenerator.java	Thu Mar 14 17:16:15 2013 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/utils/RiverMapfileGenerator.java	Thu Mar 14 17:18:41 2013 +0100
@@ -145,7 +145,7 @@
     }
 
     @Override
-    protected String getMapserverUrl() {
+    public String getMapserverUrl() {
         return FLYSUtils.getXPathString(XPATH_RIVERMAP_MAPSERVER_URL);
     }
 


More information about the Dive4elements-commits mailing list