org.apache.jackrabbit.spi.commons.query
Class QueryTreeBuilderRegistry

java.lang.Object
  extended by org.apache.jackrabbit.spi.commons.query.QueryTreeBuilderRegistry

public class QueryTreeBuilderRegistry
extends Object

Implements a central access to QueryTreeBuilder instances.


Constructor Summary
QueryTreeBuilderRegistry()
           
 
Method Summary
static QueryTreeBuilder getQueryTreeBuilder(String language)
          Returns the QueryTreeBuilder for language.
static String[] getSupportedLanguages()
          Returns the set of query languages supported by all registered QueryTreeBuilder implementations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.


Copyright © 2011-2013 Adobe Systems Incorporated. All Rights Reserved.