From e687043f3c7e3da0951a9a302a9aa7bb99da2238 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:00:58 +0200 Subject: [PATCH] add methods to get override for one file --- src/net/pterodactylus/jsite/project/Project.java | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/net/pterodactylus/jsite/project/Project.java b/src/net/pterodactylus/jsite/project/Project.java index 9545b4d..305e8ef 100644 --- a/src/net/pterodactylus/jsite/project/Project.java +++ b/src/net/pterodactylus/jsite/project/Project.java @@ -270,6 +270,30 @@ public class Project extends AbstractBean { } /** + * Returns the file override for the given file. + * + * @param projectFile + * The file for which to get the override + * @return The file override, or null if the given file does + * not have an override + */ + public FileOverride getFileOverride(ProjectFile projectFile) { + return fileOverrides.get(projectFile.getCompletePath()); + } + + /** + * Returns the file override for the given file. + * + * @param filePath + * The file path for which to get the override + * @return The file override, or null if the given file does + * not have an override + */ + public FileOverride getFileOverride(String filePath) { + return fileOverrides.get(filePath); + } + + /** * Returns the list of {@link FileOverride}s. * * @return All file overrides -- 2.7.4