Mercurial > dive4elements > river
changeset 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 | 7712dacc27ab |
children | 11c853b0854a |
files | flys-artifacts/src/main/java/de/intevation/flys/utils/ArtifactMapfileGenerator.java flys-artifacts/src/main/java/de/intevation/flys/utils/MapfileGenerator.java flys-artifacts/src/main/java/de/intevation/flys/utils/RiverMapfileGenerator.java |
diffstat | 3 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- 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); }
--- 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());
--- 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); }