Class QueryTreeBuilderRegistry
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.query.QueryTreeBuilderRegistry
-
public class QueryTreeBuilderRegistry extends Object
Implements a central access to QueryTreeBuilder instances.
-
-
Constructor Summary
Constructors Constructor Description QueryTreeBuilderRegistry()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static QueryTreeBuilder
getQueryTreeBuilder(String language)
Returns theQueryTreeBuilder
forlanguage
.static String[]
getSupportedLanguages()
Returns the set of query languages supported by all registeredQueryTreeBuilder
implementations.
-
-
-
Method Detail
-
getQueryTreeBuilder
public static QueryTreeBuilder getQueryTreeBuilder(String language) throws InvalidQueryException
Returns theQueryTreeBuilder
forlanguage
.- Parameters:
language
- the language of the query statement.- Returns:
- the
QueryTreeBuilder
forlanguage
. - Throws:
InvalidQueryException
- if there is no query tree builder forlanguage
.
-
getSupportedLanguages
public static String[] getSupportedLanguages()
Returns the set of query languages supported by all registeredQueryTreeBuilder
implementations.- Returns:
- String array containing the names of the supported languages.
-
-