From 0a0fb19546b696c5d90a9affb6af784f0cf93022 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 22 Mar 2012 21:11:18 +0100 Subject: [PATCH] Add filename of last insert. --- src/de/todesbaum/jsite/application/FileOption.java | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/de/todesbaum/jsite/application/FileOption.java b/src/de/todesbaum/jsite/application/FileOption.java index 52d071b..c8824de 100644 --- a/src/de/todesbaum/jsite/application/FileOption.java +++ b/src/de/todesbaum/jsite/application/FileOption.java @@ -52,6 +52,9 @@ public class FileOption { /** The edition of the last insert. */ private int lastInsertEdition; + /** The filename of the last insert. */ + private String lastInsertFilename; + /** The current hash of the file. */ private String currentHash; @@ -230,6 +233,27 @@ public class FileOption { } /** + * Returns the name of the file when it was last inserted. + * + * @return The name of the file at the last insert + */ + public String getLastInsertFilename() { + return lastInsertFilename; + } + + /** + * Sets the name of the file when it was last inserted. + * + * @param lastInsertFilename + * The name of the file at the last insert. + * @return These file options + */ + public FileOption setLastInsertFilename(String lastInsertFilename) { + this.lastInsertFilename = lastInsertFilename; + return this; + } + + /** * Returns the current hash of the file. This value is ony a temporary value * that is copied to {@link #getLastInsertHash()} when a project has * finished inserting. -- 2.7.4