View Javadoc
1 /* 2 Bloof - visualize the evolution of your software project 3 Copyright ( C ) 2003 Lukasz Pekacki <lukasz@pekacki.de> 4 http://bloof.sf.net/ 5 6 This program is free software; you can redistribute it and/or modify it 7 under the terms of the GNU General Public License. 8 9 This program is distributed in the hope that it will be useful, 10 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 GNU General Public License for more details. 13 14 You should have received a copy of the GNU General Public License along with 15 this program; if not, write to the Free Software Foundation, Inc., 16 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 18 $RCSfile: Revision.java,v $ 19 Created on $Date: 2003/09/06 08:35:09 $ 20 */ 21 package net.sf.bloof.scm.cvsplugin; 22 23 import java.util.Date; 24 25 import net.sf.bloof.scm.FileState; 26 import net.sf.bloof.scm.ScmRevision; 27 28 /*** 29 * Container class for a Revision of a CVS controlled file 30 * @author Lukasz Pekacki <pekacki@users.sourceforge.net> 31 * @version $Id: Revision.java,v 1.10 2003/09/06 08:35:09 pekacki Exp $ 32 */ 33 public class Revision implements ScmRevision { 34 35 /*** 36 * @see net.sf.bloof.scm.ScmRevision#getAdded( ) 37 */ 38 public int getAdded() { 39 return mAdded; 40 } 41 42 /*** 43 * @see net.sf.bloof.scm.ScmRevision#getAuthor( ) 44 */ 45 public String getAuthor() { 46 return mAuthor; 47 } 48 49 /*** 50 * @see net.sf.bloof.scm.ScmRevision#getComment( ) 51 */ 52 public String getComment() { 53 return mComment; 54 } 55 56 /*** 57 * @see net.sf.bloof.scm.ScmRevision#getDate( ) 58 */ 59 public Date getDate() { 60 return mDate; 61 } 62 /*** 63 * @see net.sf.bloof.scm.ScmRevision#getFileName( ) 64 */ 65 public String getFileName() { 66 return mFileName; 67 } 68 /*** 69 * @see net.sf.bloof.scm.ScmRevision#getFileState( ) 70 */ 71 public FileState getFileState() { 72 return mFileState; 73 } 74 75 /*** 76 * @see net.sf.bloof.scm.ScmRevision#getPath( ) 77 */ 78 public String getPath() { 79 return mPath; 80 } 81 82 /*** 83 * @see net.sf.bloof.scm.ScmRevision#getQualifiedFilename( ) 84 */ 85 public String getQualifiedFilename() { 86 return getPath(); 87 } 88 89 /*** 90 * @see net.sf.bloof.scm.ScmRevision#getRemoved( ) 91 */ 92 public int getRemoved() { 93 return mRemoved; 94 } 95 96 /*** 97 * @see net.sf.bloof.scm.ScmRevision#getRevisionName( ) 98 */ 99 public String getRevisionName() { 100 return mRevisionName; 101 } 102 103 /*** 104 * Sets the added lines 105 * @param aAdded lines 106 */ 107 public void setAdded(int aAdded) { 108 this.mAdded = aAdded; 109 } 110 111 /*** 112 * Sets the author. 113 * @param aAuthor The author to set 114 */ 115 public void setAuthor(String aAuthor) { 116 this.mAuthor = aAuthor; 117 } 118 119 /*** 120 * Sets the Comment 121 * @param aComment The comment to set 122 */ 123 public void setComment(String aComment) { 124 this.mComment = aComment; 125 } 126 127 /*** 128 * Sets the date. 129 * @param aDate The date to set 130 */ 131 public void setDate(Date aDate) { 132 this.mDate = aDate; 133 } 134 135 /*** 136 * Sets the fileName. 137 * @param aFileName The fileName to set 138 */ 139 public void setFileName(String aFileName) { 140 this.mFileName = aFileName; 141 } 142 143 /*** 144 * Sets the state of the file at the moment of this revision 145 * @param aFileState the state of the file at the moment of this revision 146 */ 147 public void setFileState(FileState aFileState) { 148 mFileState = aFileState; 149 } 150 151 /*** 152 * Sets the path. 153 * @param aPath The path to set 154 */ 155 public void setPath(String aPath) { 156 this.mPath = aPath; 157 } 158 159 /*** 160 * Sets the removed. 161 * @param aRemoved The removed to set 162 */ 163 public void setRemoved(int aRemoved) { 164 this.mRemoved = aRemoved; 165 } 166 167 /*** 168 * Sets the revisionName. 169 * @param aRevisionName The revisionName to set 170 */ 171 public void setRevisionName(String aRevisionName) { 172 this.mRevisionName = aRevisionName; 173 } 174 175 /*** 176 * @see java.lang.Object#toString( ) 177 */ 178 public String toString() { 179 return "File: " + mFileName + "; Rev: " + mRevisionName; 180 } 181 private int mAdded; 182 private String mAuthor; 183 private String mComment; 184 private Date mDate; 185 private String mFileName; 186 private FileState mFileState = FileState.LIVING; 187 private String mPath; 188 private int mRemoved; 189 private String mRevisionName; 190 191 }

This page was automatically generated by Maven