com.mycompany.messages
Class NewsItemBean

java.lang.Object
  extended bycom.mycompany.messages.NewsItemBean
All Implemented Interfaces:
java.io.Serializable

public class NewsItemBean
extends java.lang.Object
implements java.io.Serializable

This class holds information about one news item. It's only intended as an example.

Version:
1.0
Author:
Hans Bergsten, Gefion Software
See Also:
Serialized Form

Field Summary
private  java.lang.String category
           
private  int id
           
private  java.lang.String msg
           
private  java.lang.String postedBy
           
private  java.util.Date postedDate
           
 
Constructor Summary
NewsItemBean()
           
 
Method Summary
 java.lang.String getCategory()
          Returns the category property value.
 int getId()
          Returns the id property value.
 java.lang.String getMsg()
          Returns the msg property value.
 java.lang.String getPostedBy()
          Returns the postedBy property value.
 java.util.Date getPostedDate()
          Returns the postedDate property value.
 void setCategory(java.lang.String category)
          Sets the category property value.
 void setId(int id)
          Sets the id property value.
 void setMsg(java.lang.String msg)
          Sets the msg property value.
 void setPostedBy(java.lang.String postedBy)
          Sets the postedBy property value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

category

private java.lang.String category

msg

private java.lang.String msg

postedBy

private java.lang.String postedBy

postedDate

private java.util.Date postedDate

id

private int id
Constructor Detail

NewsItemBean

public NewsItemBean()
Method Detail

getCategory

public java.lang.String getCategory()
Returns the category property value.


setCategory

public void setCategory(java.lang.String category)
Sets the category property value.


getMsg

public java.lang.String getMsg()
Returns the msg property value.


setMsg

public void setMsg(java.lang.String msg)
Sets the msg property value.


getPostedBy

public java.lang.String getPostedBy()
Returns the postedBy property value.


setPostedBy

public void setPostedBy(java.lang.String postedBy)
Sets the postedBy property value.


getPostedDate

public java.util.Date getPostedDate()
Returns the postedDate property value.


getId

public int getId()
Returns the id property value.


setId

public void setId(int id)
Sets the id property value.