Class QueryImpl
java.lang.Object
de.uni_trier.wi2.procake.retrieval.impl.QueryImpl
- All Implemented Interfaces:
Query
- Direct Known Subclasses:
DependencyQueryImpl
,MACFACQueryImpl
- Author:
- rmaximi
-
Field Summary
Fields inherited from interface de.uni_trier.wi2.procake.retrieval.Query
DEFAULT_MINSIMILARITY, DEFAULT_NUMBEROFRESULTS, DEFAULT_RETRIEVECASES
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionConverts a serialized Query-XML into a Query-objectdouble
int
<T extends DataObject>
Tboolean
void
setMinSimilarity
(double minSimilarity) void
setNumberOfResults
(int numberOfResults) void
setQueryObject
(DataObject queryObject) void
setRetrieveCases
(boolean retrieveCases) toXML()
Converts full Query to XMLConverts Query to XML, ignoring the fields specified in toOmit
-
Constructor Details
-
QueryImpl
public QueryImpl()
-
-
Method Details
-
getMinSimilarity
public double getMinSimilarity()- Specified by:
getMinSimilarity
in interfaceQuery
-
setMinSimilarity
public void setMinSimilarity(double minSimilarity) - Specified by:
setMinSimilarity
in interfaceQuery
-
getNumberOfResults
public int getNumberOfResults()- Specified by:
getNumberOfResults
in interfaceQuery
-
setNumberOfResults
public void setNumberOfResults(int numberOfResults) - Specified by:
setNumberOfResults
in interfaceQuery
-
getQueryObject
- Specified by:
getQueryObject
in interfaceQuery
-
setQueryObject
- Specified by:
setQueryObject
in interfaceQuery
-
isRetrieveCases
public boolean isRetrieveCases()- Specified by:
isRetrieveCases
in interfaceQuery
-
setRetrieveCases
public void setRetrieveCases(boolean retrieveCases) - Specified by:
setRetrieveCases
in interfaceQuery
-
toXML
Description copied from interface:Query
Converts full Query to XML -
toXML
Description copied from interface:Query
Converts Query to XML, ignoring the fields specified in toOmit -
fromXML
Description copied from interface:Query
Converts a serialized Query-XML into a Query-object
-