SMILA (incubation) API documentation

org.eclipse.smila.search.utils.searchresult
Class DHighLighted

java.lang.Object
  extended by org.eclipse.smila.search.utils.searchresult.DHighLighted
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class DHighLighted
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

Data structure for a highlighting value.

Author:
brox IT-Solutions GmbH
See Also:
Serialized Form

Constructor Summary
DHighLighted()
          Default Constructor.
DHighLighted(java.lang.String text, int score)
          Conversion Constructor.
 
Method Summary
 java.lang.Object clone()
          
 int getScore()
          Returns the score.
 java.lang.String getText()
          Returns the text.
 void setScore(int score)
          Sets the score.
 void setText(java.lang.String text)
          Sets the text.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DHighLighted

public DHighLighted()
Default Constructor.


DHighLighted

public DHighLighted(java.lang.String text,
                    int score)
Conversion Constructor.

Parameters:
text - the text to highlight
score - the score of the text
Method Detail

clone

public java.lang.Object clone()

Overrides:
clone in class java.lang.Object

getScore

public int getScore()
Returns the score.

Returns:
the score

getText

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

Returns:
the text

setScore

public void setScore(int score)
Sets the score.

Parameters:
score - the score

setText

public void setText(java.lang.String text)
Sets the text.

Parameters:
text - the text

toString

public java.lang.String toString()

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

SMILA (incubation) API documentation