diff flys-artifacts/src/main/java/de/intevation/flys/utils/MapfileGenerator.java @ 5309:b55975761708

Changed visiblitiy of some methods. TODO: A lot of refactoring. A lot of functions may be moved to Utils.
author Raimund Renkert <rrenkert@intevation.de>
date Thu, 14 Mar 2013 17:18:41 +0100
parents 38ec171544de
children
line wrap: on
line diff
--- 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());

http://dive4elements.wald.intevation.org