add default node
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 3 Jun 2008 06:52:44 +0000 (08:52 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 3 Jun 2008 06:52:44 +0000 (08:52 +0200)
src/net/pterodactylus/jsite/core/Project.java

index 8ad88a8..1301236 100644 (file)
@@ -82,6 +82,9 @@ public class Project extends AbstractBean {
        /** The overrides. */
        private final Map<String, FileOverride> fileOverrides = new HashMap<String, FileOverride>();
 
        /** The overrides. */
        private final Map<String, FileOverride> fileOverrides = new HashMap<String, FileOverride>();
 
+       /** The default node to insert to. */
+       private Node node;
+
        /** The current root project file. */
        private ProjectFileImpl rootProjectFile;
 
        /** The current root project file. */
        private ProjectFileImpl rootProjectFile;
 
@@ -373,6 +376,25 @@ public class Project extends AbstractBean {
                return currentProjectFile;
        }
 
                return currentProjectFile;
        }
 
+       /**
+        * Returns the default node to insert this project to.
+        * 
+        * @return The node to insert this project to
+        */
+       public Node getNode() {
+               return node;
+       }
+
+       /**
+        * Sets the default node to insert this project to.
+        * 
+        * @param node
+        *            The node to insert this project to
+        */
+       void setNode(Node node) {
+               this.node = node;
+       }
+
        //
        // PRIVATE METHODS
        //
        //
        // PRIVATE METHODS
        //