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:
  • 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 interface ISearchEntry
      Returns:
      A score value ranging from 0.0 to 100.0
    • isExposedAsWebservice

      public boolean isExposedAsWebservice()
      Specified by:
      isExposedAsWebservice in interface ISearchEntry
    • 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 interface ISearchEntry
      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 interface ISearchEntry
      Returns:
      A string holding the name of the Decision Tree.
    • compareTo

      public int compareTo(ISearchEntry other)
      Specified by:
      compareTo in interface Comparable<ISearchEntry>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object