Class SearchEntry
java.lang.Object
com.aquima.interactions.dtree.impl.SearchEntry
- All Implemented Interfaces:
ISearchEntry
,Serializable
,Comparable<ISearchEntry>
Implementation class for internal use only.
- Since:
- 5.1
- Author:
- F. van der Meer.
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
SearchEntry
(String name, IMultilingualText displayText, double maxScore, boolean exposedAsWebservice) -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(ISearchEntry other) boolean
double
getScore()
The score function represents the match value of the decisiontree.The display text of the decision tree which is ready for display.Returns the decision tree name for the entry.int
hashCode()
boolean
-
Constructor Details
-
SearchEntry
protected SearchEntry(String name, IMultilingualText displayText, double maxScore, boolean exposedAsWebservice)
-
-
Method Details
-
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
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
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
- Specified by:
compareTo
in interfaceComparable<ISearchEntry>
-
hashCode
public int hashCode() -
equals
-