Class QueryTreeBuilderRegistry


  • public class QueryTreeBuilderRegistry
    extends Object
    Implements a central access to QueryTreeBuilder instances.
    • Constructor Detail

      • QueryTreeBuilderRegistry

        public QueryTreeBuilderRegistry()
    • Method Detail

      • getQueryTreeBuilder

        public static QueryTreeBuilder getQueryTreeBuilder​(String language)
                                                    throws InvalidQueryException
        Returns the QueryTreeBuilder for language.
        Parameters:
        language - the language of the query statement.
        Returns:
        the QueryTreeBuilder for language.
        Throws:
        InvalidQueryException - if there is no query tree builder for language.
      • getSupportedLanguages

        public static String[] getSupportedLanguages()
        Returns the set of query languages supported by all registered QueryTreeBuilder implementations.
        Returns:
        String array containing the names of the supported languages.