org.xcmis.search.parser
Interface QueryParser


public interface QueryParser

The basic interface defining a component that is able to parse a string query into a Query.


Method Summary
 String getLanguage()
          Get the name of the language that this parser is able to understand.
 Query parseQuery(String statement)
          Parse the supplied query from a string representation into a Query.
 

Method Detail

getLanguage

String getLanguage()
Get the name of the language that this parser is able to understand.

Returns:
the language name; never null

parseQuery

Query parseQuery(String statement)
                 throws InvalidQueryException
Parse the supplied query from a string representation into a Query.

Parameters:
statement - in string form; may not be null
Returns:
the query command
Throws:
InvalidQueryException - if the supplied query can be parsed but is invalid


Copyright © 2010 eXo Platform SAS. All Rights Reserved.