org.apache.wicket.examples.guestbook
Class Comment

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

public class Comment
extends 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
 Date getDate()
           
 String getText()
           
 void setDate(Date date)
           
 void setText(String text)
           
 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 String getText()
Returns:
Returns the text.

setText

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

getDate

public Date getDate()
Returns:
Returns the date.

setDate

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

toString

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


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