FileDocCategorySizeDatePackage
NewsItemBean.javaAPI DocExample1679Tue Jun 08 11:26:42 BST 2004com.mycompany.messages

NewsItemBean.java

package com.mycompany.messages;

import java.io.Serializable;
import java.util.Date;

/**
 * This class holds information about one news item. It's
 * only intended as an example.
 *
 * @author Hans Bergsten, Gefion Software <hans@gefionsoftware.com>
 * @version 1.0
 */
public class NewsItemBean implements Serializable {
    private String category;
    private String msg;
    private String postedBy;
    private Date postedDate = new Date();
    private int id;

    /**
     * Returns the category property value.
     */
    public String getCategory() {
        return category;
    }

    /**
     * Sets the category property value.
     */
    public void setCategory(String category) {
        this.category = category;
    }

    /**
     * Returns the msg property value.
     */
    public String getMsg() {
        return msg;
    }

    /**
     * Sets the msg property value.
     */
    public void setMsg(String msg) {
        this.msg = msg;
    }

    /**
     * Returns the postedBy property value.
     */
    public String getPostedBy() {
        return postedBy;
    }

    /**
     * Sets the postedBy property value.
     */
    public void setPostedBy(String postedBy) {
        this.postedBy = postedBy;
    }

    /**
     * Returns the postedDate property value.
     */
    public Date getPostedDate() {
        return postedDate;
    }
    
    /**
     * Returns the id property value.
     */
    public int getId() {
        return id;
    }
    
    /**
     * Sets the id property value.
     */
    public void setId(int id) {
        this.id = id;
    }
}