Interface Query

All Known Subinterfaces:
DependencyQuery, MACFACQuery
All Known Implementing Classes:
DependencyQueryImpl, MACFACQueryImpl, QueryImpl

public interface Query
Description of a query to be used in Retriever.perform(Query). A query object can be created using Retriever.newQuery().
Author:
Rainer Maximini
See Also:
  • Field Details

  • Method Details

    • getMinSimilarity

      double getMinSimilarity()
    • setMinSimilarity

      void setMinSimilarity(double minSim)
    • getNumberOfResults

      int getNumberOfResults()
    • setNumberOfResults

      void setNumberOfResults(int number)
    • getQueryObject

      <T extends DataObject> T getQueryObject()
    • setQueryObject

      void setQueryObject(DataObject queryObject)
    • isRetrieveCases

      boolean isRetrieveCases()
    • setRetrieveCases

      void setRetrieveCases(boolean retrieveCases)
    • toXML

      String toXML()
      Converts full Query to XML
      Returns:
      XML String
    • toXML

      String toXML(HashMap<Class,List<String>> toOmit)
      Converts Query to XML, ignoring the fields specified in toOmit
      Parameters:
      toOmit - HashMap that contains classes as a key and a corresponding list of fields that should be ignored in the particular class
      Returns:
      XML String
    • fromXML

      QueryImpl fromXML(String queryXML)
      Converts a serialized Query-XML into a Query-object
      Parameters:
      queryXML - Query XML String
      Returns:
      Query-object