Class 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.
    • Constructor Detail

      • ExampleQuery

        public ExampleQuery​(String query,
                            String queryType,
                            Map<String,​String> description)
        Constructor.
        Parameters:
        query - the query string of this example query
        queryType - the query type for this example query
        description - 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
      • getDescription

        public String getDescription​(String language)
        Get the description of the example query for a specific language code.
        Parameters:
        language - the language code
        Returns:
        the description for the language code or null if no title for this language code exists