1 19 package org.netbeans.lib.cvsclient.command.annotate; 20 21 import java.text.*; 22 import java.util.*; 23 24 27 public class AnnotateLine { 28 29 private static final DateFormat DATE_FORMAT = new SimpleDateFormat("dd-MMM-yy", Locale.US); 31 32 private String author; 33 private String revision; 34 private Date date; 35 private String dateString; 36 private String content; 37 private int lineNum; 38 39 public AnnotateLine() { 40 } 41 42 45 public String getAuthor() { 46 return author; 47 } 48 49 52 public void setAuthor(String author) { 53 this.author = author; 54 } 55 56 59 public String getRevision() { 60 return revision; 61 } 62 63 66 public void setRevision(String revision) { 67 this.revision = revision; 68 } 69 70 73 public Date getDate() { 74 return date; 75 } 76 77 80 public String getDateString() { 81 return dateString; 82 } 83 84 87 public void setDateString(String dateString) { 88 this.dateString = dateString; 89 try { 90 this.date = DATE_FORMAT.parse(dateString); 91 } 92 catch (ParseException ex) { 93 ex.printStackTrace(); 95 } 96 } 97 98 101 public String getContent() { 102 return content; 103 } 104 105 108 public void setContent(String content) { 109 this.content = content; 110 } 111 112 115 public int getLineNum() { 116 return lineNum; 117 } 118 119 122 public Integer getLineNumInteger() { 123 return new Integer (lineNum); 124 } 125 126 129 public void setLineNum(int lineNum) { 130 this.lineNum = lineNum; 131 } 132 } | Popular Tags |