GigaSpaces XAP 9.7.2 API

net.jini.lookup.entry
Class CommentBean

java.lang.Object
  extended by net.jini.lookup.entry.CommentBean
All Implemented Interfaces:
Serializable, EntryBean

public class CommentBean
extends Object
implements EntryBean, Serializable

A JavaBeans(TM) component that encapsulates a Comment object.

Author:
Sun Microsystems, Inc.
See Also:
Comment, Serialized Form

Field Summary
protected  Comment assoc
          The Entry object associated with this JavaBeans component.
 
Constructor Summary
CommentBean()
          Construct a new JavaBeans component, linked to a new empty Comment object.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

assoc

protected Comment assoc
The Entry object associated with this JavaBeans component.

Constructor Detail

CommentBean

public CommentBean()
Construct a new JavaBeans component, linked to a new empty Comment object.

Method Detail

makeLink

public void makeLink(Entry e)
Make a link to an Entry object.

Specified by:
makeLink in interface EntryBean
Parameters:
e - the Entry object to link to
Throws:
ClassCastException - the Entry is not of the correct type for this JavaBeans component

followLink

public Entry followLink()
Return the Entry linked to by this JavaBeans component.

Specified by:
followLink in interface EntryBean
Returns:
the entry linked to by this JavaBeans component.

getComment

public String getComment()
Return the value of the comment field in the Comment object linked to by this JavaBeans component.

Returns:
a String representing the comment value
See Also:
setComment(java.lang.String)

setComment

public void setComment(String x)
Set the value of the comment field in the Comment object linked to by this JavaBeans component.

Parameters:
x - a String specifying the comment value
See Also:
getComment()

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.