From: David ‘Bombe’ Roden Date: Tue, 3 Jun 2008 06:52:44 +0000 (+0200) Subject: add default node X-Git-Url: https://git.pterodactylus.net/?p=jSite2.git;a=commitdiff_plain;h=366dd62299ad3bf0f5d8ead81fd6a1c716851eb8 add default node --- diff --git a/src/net/pterodactylus/jsite/core/Project.java b/src/net/pterodactylus/jsite/core/Project.java index 8ad88a8..1301236 100644 --- a/src/net/pterodactylus/jsite/core/Project.java +++ b/src/net/pterodactylus/jsite/core/Project.java @@ -82,6 +82,9 @@ public class Project extends AbstractBean { /** The overrides. */ private final Map fileOverrides = new HashMap(); + /** The default node to insert to. */ + private Node node; + /** The current root project file. */ private ProjectFileImpl rootProjectFile; @@ -373,6 +376,25 @@ public class Project extends AbstractBean { 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 //