Class QueryImpl

java.lang.Object
de.uni_trier.wi2.procake.retrieval.impl.QueryImpl
All Implemented Interfaces:
Query
Direct Known Subclasses:
DependencyQueryImpl, MACFACQueryImpl

public class QueryImpl extends Object implements Query
Author:
rmaximi
  • Constructor Details

    • QueryImpl

      public QueryImpl()
  • Method Details

    • getMinSimilarity

      public double getMinSimilarity()
      Specified by:
      getMinSimilarity in interface Query
    • setMinSimilarity

      public void setMinSimilarity(double minSimilarity)
      Specified by:
      setMinSimilarity in interface Query
    • getNumberOfResults

      public int getNumberOfResults()
      Specified by:
      getNumberOfResults in interface Query
    • setNumberOfResults

      public void setNumberOfResults(int numberOfResults)
      Specified by:
      setNumberOfResults in interface Query
    • getQueryObject

      public <T extends DataObject> T getQueryObject()
      Specified by:
      getQueryObject in interface Query
    • setQueryObject

      public void setQueryObject(DataObject queryObject)
      Specified by:
      setQueryObject in interface Query
    • isRetrieveCases

      public boolean isRetrieveCases()
      Specified by:
      isRetrieveCases in interface Query
    • setRetrieveCases

      public void setRetrieveCases(boolean retrieveCases)
      Specified by:
      setRetrieveCases in interface Query
    • toXML

      public String toXML()
      Description copied from interface: Query
      Converts full Query to XML
      Specified by:
      toXML in interface Query
      Returns:
      XML String
    • toXML

      public String toXML(HashMap<Class,List<String>> toOmit)
      Description copied from interface: Query
      Converts Query to XML, ignoring the fields specified in toOmit
      Specified by:
      toXML in interface Query
      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

      public QueryImpl fromXML(String queryXML)
      Description copied from interface: Query
      Converts a serialized Query-XML into a Query-object
      Specified by:
      fromXML in interface Query
      Parameters:
      queryXML - Query XML String
      Returns:
      Query-object