diff src/java/de/intevation/mxd/utils/MapToXMLUtils.java @ 43:ef7ca23c4233

Added comments, done some code styling and removed typos.
author Raimund Renkert <rrenkert@intevation.de>
date Fri, 15 Apr 2011 15:44:54 +0200
parents 27577294f9ca
children 6b80d2c7536e
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/utils/MapToXMLUtils.java	Fri Apr 15 14:14:49 2011 +0200
+++ b/src/java/de/intevation/mxd/utils/MapToXMLUtils.java	Fri Apr 15 15:44:54 2011 +0200
@@ -20,10 +20,19 @@
  */
 public class MapToXMLUtils
 {
+    /**
+     * The logger.
+     */
+    private static final Logger logger = Logger.getLogger(MapToXMLUtils.class);
+
+    /**
+     * Private member.
+     */
     private Document root;
     private Element rootElement;
     private XMLUtils.ElementCreator creator;
 
+
     public MapToXMLUtils() {
         this.root = XMLUtils.newDocument();
         creator = new XMLUtils.ElementCreator(root, "", "");
@@ -31,6 +40,11 @@
         root.appendChild(rootElement);
     }
 
+    /**
+     * Add the mxd filename to the dom.
+     * @param path Path to the mxdfile.
+     * @return Currently always true.
+     */
     public boolean addFilename(String path) {
         Element file = creator.create("file");
         file.setAttribute("name", path);
@@ -40,7 +54,6 @@
 
     /**
      * Create the top level map element.
-     *
      * @return The new map element.
      */
     public Element createMap()
@@ -111,6 +124,10 @@
         XMLUtils.toStream(root, System.out);
     }
 
+    /**
+     * Get the DOM document.
+     * @return The root document.
+     */
     public Document getDocument() {
         return root;
     }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)