Package eu.clarin.sru.server
Class SRUQueryParserRegistry
- java.lang.Object
-
- eu.clarin.sru.server.SRUQueryParserRegistry
-
public class SRUQueryParserRegistry extends Object
A registry to keep track of registeredSRUQueryParser
to be used by theSRUServer
.- See Also:
SRUQueryParser
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SRUQueryParserRegistry.Builder
Builder for creatingSRUQueryParserRegistry
instances.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SRUQueryParser<?>
findQueryParser(String queryType)
Find a query parser by query type.List<SRUQueryParser<?>>
getQueryParsers()
Get a list of all registered query parsers.
-
-
-
Method Detail
-
findQueryParser
public SRUQueryParser<?> findQueryParser(String queryType)
Find a query parser by query type.- Parameters:
queryType
- the query type to search for- Returns:
- the matching
SRUQueryParser
instance ornull
if no matching parser was found.
-
getQueryParsers
public List<SRUQueryParser<?>> getQueryParsers()
Get a list of all registered query parsers.- Returns:
- a list of registered query parsers
-
-