Class SearchEntry
- java.lang.Object
-
- com.aquima.interactions.dtree.impl.SearchEntry
-
- All Implemented Interfaces:
ISearchEntry
,Serializable
,Comparable<ISearchEntry>
public class SearchEntry extends Object implements ISearchEntry
Implementation class for internal use only.- Since:
- 5.1
- Author:
- F. van der Meer.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SearchEntry(String name, IMultilingualText displayText, double maxScore, boolean exposedAsWebservice)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(ISearchEntry other)
boolean
equals(Object other)
double
getScore()
The score function represents the match value of the decisiontree.IMultilingualText
getTreeDescription()
The display text of the decision tree which is ready for display.String
getTreeName()
Returns the decision tree name for the entry.int
hashCode()
boolean
isExposedAsWebservice()
-
-
-
Constructor Detail
-
SearchEntry
protected SearchEntry(String name, IMultilingualText displayText, double maxScore, boolean exposedAsWebservice)
-
-
Method Detail
-
getScore
public double getScore()
Description copied from interface:ISearchEntry
The score function represents the match value of the decisiontree. A higher value indicates a better match then a lower value. A value of 100.0 means the match is exact. While 0.0 means no match at all.- Specified by:
getScore
in interfaceISearchEntry
- Returns:
- A score value ranging from 0.0 to 100.0
-
isExposedAsWebservice
public boolean isExposedAsWebservice()
- Specified by:
isExposedAsWebservice
in interfaceISearchEntry
-
getTreeDescription
public IMultilingualText getTreeDescription()
Description copied from interface:ISearchEntry
The display text of the decision tree which is ready for display.- Specified by:
getTreeDescription
in interfaceISearchEntry
- Returns:
- A MultiLingualText for the decision-tree. Which is never null
-
getTreeName
public String getTreeName()
Description copied from interface:ISearchEntry
Returns the decision tree name for the entry.- Specified by:
getTreeName
in interfaceISearchEntry
- Returns:
- A string holding the name of the Decision Tree.
-
compareTo
public int compareTo(ISearchEntry other)
- Specified by:
compareTo
in interfaceComparable<ISearchEntry>
-
-