org.apache.wicket.examples.guestbook
Class Comment

java.lang.Object
  extended by org.apache.wicket.examples.guestbook.Comment
All Implemented Interfaces:
java.io.Serializable, IClusterable

public class Comment
extends java.lang.Object
implements IClusterable

Simple "POJO" bean for guestbook comments.

Author:
Jonathan Locke
See Also:
Serialized Form

Constructor Summary
Comment()
          Constructor
Comment(Comment comment)
          Copy constructor
 
Method Summary
 java.util.Date getDate()
           
 java.lang.String getText()
           
 void setDate(java.util.Date date)
           
 void setText(java.lang.String text)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Comment

public Comment()
Constructor


Comment

public Comment(Comment comment)
Copy constructor

Parameters:
comment - The comment to copy
Method Detail

getText

public java.lang.String getText()
Returns:
Returns the text.

setText

public void setText(java.lang.String text)
Parameters:
text - The text to set.

getDate

public java.util.Date getDate()
Returns:
Returns the date.

setDate

public void setDate(java.util.Date date)
Parameters:
date - The date to set.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.