Package eu.clarin.sru.server.fcs
Class ExampleQuery
- java.lang.Object
-
- eu.clarin.sru.server.fcs.ExampleQuery
-
public class ExampleQuery extends Object
This class is used to store information about a single example query, bundling query string, query type and multilingual description strings.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>getDescription()Get the description of this example query.StringgetDescription(String language)Get the description of the example query for a specific language code.StringgetQuery()Get the query string for this example query.StringgetQueryType()Get the query type for this example query.
-
-
-
Constructor Detail
-
ExampleQuery
public ExampleQuery(String query, String queryType, Map<String,String> description)
Constructor.- Parameters:
query- the query string of this example queryqueryType- the query type for this example querydescription- the description of the example query represented as a map with pairs of language code and description
-
-
Method Detail
-
getQuery
public String getQuery()
Get the query string for this example query.- Returns:
- the query string
-
getQueryType
public String getQueryType()
Get the query type for this example query.- Returns:
- the query type
-
getDescription
public Map<String,String> getDescription()
Get the description of this example query.- Returns:
- a Map of descriptions keyed by language code
-
-