home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / xampp / xampp-cocoon-addon-1.4.9-installer.exe / TaskCommentBean.class (.txt) < prev    next >
Encoding:
Java Class File  |  2004-07-12  |  1.9 KB  |  41 lines

  1. package org.apache.cocoon.samples.tour.beans;
  2.  
  3. import java.util.Date;
  4.  
  5. public class TaskCommentBean {
  6.    private final int m_id;
  7.    public static int m_idCounter;
  8.    private Date m_date;
  9.    private String m_comment;
  10.  
  11.    public TaskCommentBean() {
  12.       synchronized(TaskBean.class) {
  13.          this.m_id = ++m_idCounter;
  14.       }
  15.    }
  16.  
  17.    public String toString() {
  18.       return "TaskCommentBean #" + this.m_id + " (" + this.m_date + "," + this.m_comment + ")";
  19.    }
  20.  
  21.    public int getId() {
  22.       return this.m_id;
  23.    }
  24.  
  25.    public Date getDate() {
  26.       return this.m_date;
  27.    }
  28.  
  29.    public void setDate(Date m_date) {
  30.       this.m_date = m_date;
  31.    }
  32.  
  33.    public String getComment() {
  34.       return this.m_comment;
  35.    }
  36.  
  37.    public void setComment(String m_comment) {
  38.       this.m_comment = m_comment;
  39.    }
  40. }
  41.