|
|||||||||
| Home >> All >> com >> RuntimeCollective >> webapps >> [ bean overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.RuntimeCollective.webapps.bean
Class SearchResult

java.lang.Objectcom.RuntimeCollective.webapps.bean.SearchResult
- All Implemented Interfaces:
- java.io.Serializable
- public class SearchResult
- extends java.lang.Object
- implements java.io.Serializable
- extends java.lang.Object
A bean containing a single line of a search result.
- Version:
- $Id: SearchResult.java,v 1.5 2003/09/30 15:13:09 joe Exp $
| Field Summary | |
protected java.lang.String |
description
The description of this line. |
protected int |
id
The unique id for this particular result line. |
protected com.RuntimeCollective.webapps.SearchResults |
sub
A set of sub-results for this result. |
| Constructor Summary | |
SearchResult(int id,
java.lang.String description)
Construct a search result from an id and description. |
|
SearchResult(int id,
java.lang.String description,
com.RuntimeCollective.webapps.SearchResults sub)
Construct a search result from an id, description, and set of sub-results. |
|
| Method Summary | |
java.lang.String |
getDescription()
Get the description of this line. |
int |
getId()
Get the unique id for this particular result line. |
com.RuntimeCollective.webapps.SearchResults |
getSub()
Get a set of sub-results for this result. |
void |
setDescription(java.lang.String description)
Set the description of this line. |
void |
setId(int id)
Set the unique id for this particular result line. |
void |
setSub(com.RuntimeCollective.webapps.SearchResults sub)
Set a set of sub-results for this result. |
java.lang.String |
toString()
Convert this Object to a human-readable String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
id
protected int id
- The unique id for this particular result line.
description
protected java.lang.String description
- The description of this line.
sub
protected com.RuntimeCollective.webapps.SearchResults sub
- A set of sub-results for this result.
For example, a set of `document' search results may include `also see' search results for each entry.
| Constructor Detail |
SearchResult
public SearchResult(int id,
java.lang.String description)
- Construct a search result from an id and description.
SearchResult
public SearchResult(int id,
java.lang.String description,
com.RuntimeCollective.webapps.SearchResults sub)
- Construct a search result from an id, description, and set of sub-results.
| Method Detail |
getId
public int getId()
- Get the unique id for this particular result line.
setId
public void setId(int id)
- Set the unique id for this particular result line.
getDescription
public java.lang.String getDescription()
- Get the description of this line.
setDescription
public void setDescription(java.lang.String description)
- Set the description of this line.
getSub
public com.RuntimeCollective.webapps.SearchResults getSub()
- Get a set of sub-results for this result.
For example, a set of `document' search results may include `also see' search results for each entry.
setSub
public void setSub(com.RuntimeCollective.webapps.SearchResults sub)
- Set a set of sub-results for this result.
For example, a set of `document' search results may include `also see' search results for each entry.
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object - Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string concatenation with this object. If the result is
null, string concatenation will instead use"null".The default implementation returns
getClass().getName() + "@" + Integer.toHexString(hashCode()).
|
|||||||||
| Home >> All >> com >> RuntimeCollective >> webapps >> [ bean overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.RuntimeCollective.webapps.bean.SearchResult