Class QueryTreeBuilderRegistry
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.query.QueryTreeBuilderRegistry
-
public class QueryTreeBuilderRegistry extends java.lang.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(java.lang.String language)
Returns theQueryTreeBuilder
forlanguage
.static java.lang.String[]
getSupportedLanguages()
Returns the set of query languages supported by all registeredQueryTreeBuilder
implementations.
-
-
-
Method Detail
-
getQueryTreeBuilder
public static QueryTreeBuilder getQueryTreeBuilder(java.lang.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 java.lang.String[] getSupportedLanguages()
Returns the set of query languages supported by all registeredQueryTreeBuilder
implementations.- Returns:
- String array containing the names of the supported languages.
-
-