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