From 596cad1ce5034297e4f9ac0726999d86f23e08a4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 31 May 2008 17:04:00 +0200 Subject: [PATCH] add more override methods that handle project files --- src/net/pterodactylus/jsite/project/Project.java | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/src/net/pterodactylus/jsite/project/Project.java b/src/net/pterodactylus/jsite/project/Project.java index 305e8ef..65f28a1 100644 --- a/src/net/pterodactylus/jsite/project/Project.java +++ b/src/net/pterodactylus/jsite/project/Project.java @@ -250,6 +250,18 @@ public class Project extends AbstractBean { /** * Adds a file override for the given file. * + * @param projectFile + * The file + * @param override + * The override for the file + */ + public void addFileOverride(ProjectFile projectFile, FileOverride override) { + addFileOverride(projectFile.getCompletePath(), override); + } + + /** + * Adds a file override for the given file. + * * @param filePath * The file path * @param override @@ -262,6 +274,16 @@ public class Project extends AbstractBean { /** * Removes the file override for the given file. * + * @param projectFile + * The file for which to remove the override + */ + public void removeFileOverride(ProjectFile projectFile) { + removeFileOverride(projectFile.getCompletePath()); + } + + /** + * Removes the file override for the given file. + * * @param filePath * The file path for which to remove the override */ @@ -278,7 +300,7 @@ public class Project extends AbstractBean { * not have an override */ public FileOverride getFileOverride(ProjectFile projectFile) { - return fileOverrides.get(projectFile.getCompletePath()); + return getFileOverride(projectFile.getCompletePath()); } /** -- 2.7.4