public class CommentBean extends Object implements EntryBean, Serializable
Comment,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected Comment |
assoc
The Entry object associated with this JavaBeans component.
|
| Constructor and Description |
|---|
CommentBean()
Construct a new JavaBeans component, linked to a new empty
Comment object.
|
CommentBean(String comment) |
| Modifier and Type | Method and Description |
|---|---|
Entry |
followLink()
Return the Entry linked to by this JavaBeans component.
|
String |
getComment()
Return the value of the comment field in the Comment object linked to
by this JavaBeans component.
|
void |
makeLink(Entry e)
Make a link to an Entry object.
|
void |
setComment(String x)
Set the value of the comment field in the Comment object linked to by
this JavaBeans component.
|
protected Comment assoc
public CommentBean()
@ConstructorProperties(value="comment") public CommentBean(String comment)
public void makeLink(Entry e)
makeLink in interface EntryBeane - the Entry object to link toClassCastException - the Entry is not of the
correct type for this JavaBeans componentpublic Entry followLink()
followLink in interface EntryBeanpublic String getComment()
String representing the comment valuesetComment(java.lang.String)public void setComment(String x)
x - a String specifying the comment valuegetComment()Copyright © 2016–2018. All rights reserved.