comparison gnv-artifacts/src/main/java/de/intevation/gnv/utils/MapfileGenerator.java @ 807:a645bd23c1c8

Added more javadoc. Removed trailing whitespace. gnv-artifacts/trunk@889 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 08 Apr 2010 15:24:45 +0000
parents 2cea76f1112e
children 47578d91c4f0
comparison
equal deleted inserted replaced
806:2cea76f1112e 807:a645bd23c1c8
33 33
34 /** 34 /**
35 * This class iterates over a bunch of directories, searches for meta 35 * This class iterates over a bunch of directories, searches for meta
36 * information coresponding to shapefiles and creates a mapfile which is used by 36 * information coresponding to shapefiles and creates a mapfile which is used by
37 * a <i>MapServer</i>. 37 * a <i>MapServer</i>.
38 * 38 *
39 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> 39 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
40 */ 40 */
41 public class MapfileGenerator 41 public class MapfileGenerator
42 extends Thread 42 extends Thread
43 { 43 {
79 79
80 /** 80 /**
81 * The XPath to layer nodes in the meta information xml file. 81 * The XPath to layer nodes in the meta information xml file.
82 */ 82 */
83 public static final String XPATH_LAYER = "/art:meta/art:layer"; 83 public static final String XPATH_LAYER = "/art:meta/art:layer";
84 84
85 public static final String XPATH_LAYER_NAME = "art:name"; 85 public static final String XPATH_LAYER_NAME = "art:name";
86 public static final String XPATH_LAYER_TITLE = "art:title"; 86 public static final String XPATH_LAYER_TITLE = "art:title";
87 public static final String XPATH_LAYER_TYPE = "art:type"; 87 public static final String XPATH_LAYER_TYPE = "art:type";
88 public static final String XPATH_LAYER_DATA = "art:data"; 88 public static final String XPATH_LAYER_DATA = "art:data";
89 public static final String XPATH_LAYER_STATUS = "art:status"; 89 public static final String XPATH_LAYER_STATUS = "art:status";
112 112
113 /** 113 /**
114 * A main method which can be used to create a mapfile without a running 114 * A main method which can be used to create a mapfile without a running
115 * artifact server.<br> 115 * artifact server.<br>
116 * <b>NOTE:</b> This method is not implemented yet! 116 * <b>NOTE:</b> This method is not implemented yet!
117 * 117 *
118 * @param args Arguments. 118 * @param args Arguments.
119 */ 119 */
120 public static void main(String[] args) { 120 public static void main(String[] args) {
121 // TODO IMPLEMENT ME 121 // TODO IMPLEMENT ME
122 } 122 }
335 } 335 }
336 336
337 337
338 /** 338 /**
339 * Returns the mapfile. 339 * Returns the mapfile.
340 * 340 *
341 * @return the mapfile. 341 * @return the mapfile.
342 */ 342 */
343 protected File getMapfile() { 343 protected File getMapfile() {
344 if (mapfile == null) { 344 if (mapfile == null) {
345 String tmp = Config.getStringXPath(MAPFILE_PATH); 345 String tmp = Config.getStringXPath(MAPFILE_PATH);
352 352
353 353
354 /** 354 /**
355 * Search for meta information file in <i>file</i> and store the layer 355 * Search for meta information file in <i>file</i> and store the layer
356 * information in <i>store</i> if a meta file was found. 356 * information in <i>store</i> if a meta file was found.
357 * 357 *
358 * @param file The root directory to be searched for meta files. 358 * @param file The root directory to be searched for meta files.
359 * @param store A list storing <code>LayerInfo</code> objects. 359 * @param store A list storing <code>LayerInfo</code> objects.
360 */ 360 */
361 protected void searchMetaInformation(File file, List store) { 361 protected void searchMetaInformation(File file, List store) {
362 if (file.isDirectory()) { 362 if (file.isDirectory()) {
477 } 477 }
478 478
479 479
480 /** 480 /**
481 * Creates a mapfile with the layer information stored in <i>layers</i>. 481 * Creates a mapfile with the layer information stored in <i>layers</i>.
482 * 482 *
483 * @param layers Layer information. 483 * @param layers Layer information.
484 */ 484 */
485 protected void writeMapfile(List layers) { 485 protected void writeMapfile(List layers) {
486 String tmpMapName = "mapfile" + new Date().getTime(); 486 String tmpMapName = "mapfile" + new Date().getTime();
487 487

http://dive4elements.wald.intevation.org