public class LQLParserUtil
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
LQLParserUtil.ConvertToStringOperator |
static class |
LQLParserUtil.ParseFilterOperator |
static class |
LQLParserUtil.ParseQueryWithoutValidation
Non-validating parse query; does no type checking or other semantic analysis of the EQL query, only basic syntax
conversion from String to AST.
|
static class |
LQLParserUtil.ParseQueryWithValidation
Validating parse query; does type checking of the EQL query and other semantic analysis like state name
dependency resolution and corpus attribute determination.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
LQL_PARSER_SERVICE |
| Constructor and Description |
|---|
LQLParserUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <ResponseType> |
executeParserOperation(RequestIds requestIds,
com.endeca.portal.mdex.LQLParserUtil.ParserOperator<ResponseType> op,
java.lang.String languageId) |
protected static com.endeca.mdex.eql_parser.types.State |
getNamedState(com.endeca.mdex.eql_parser.types.ParseQuery parseQuery,
java.lang.String stateName)
Find a named State in a parser service request.
|
protected static com.endeca.mdex.eql_parser.types.State |
getOrCreateNamedState(com.endeca.mdex.eql_parser.types.ParseQuery parseQuery,
java.lang.String stateName)
Tries to find the named state if it already exists on the parser request.
|
protected static void |
setupNamedStates(com.endeca.mdex.eql_parser.types.ParseQuery parseQuery,
java.util.Collection<CollectionBaseView> baseViews)
Sets up named states for use as context when parsing queries with validation enabled.
|
public static final java.lang.String LQL_PARSER_SERVICE
public static <ResponseType> ResponseType executeParserOperation(RequestIds requestIds, com.endeca.portal.mdex.LQLParserUtil.ParserOperator<ResponseType> op, java.lang.String languageId) throws DataSourceException, LQLException
DataSourceExceptionLQLExceptionprotected static void setupNamedStates(com.endeca.mdex.eql_parser.types.ParseQuery parseQuery,
java.util.Collection<CollectionBaseView> baseViews)
DiscoveryServiceUtil#setupNamedStates(com.endeca.mdex.conversation.Request, java.util.Collection).parseQuery - a request to eql_parserbaseViews - collections in current project's contextDiscoveryServiceUtil#setupNamedStates(com.endeca.mdex.conversation.Request, java.util.Collection)protected static com.endeca.mdex.eql_parser.types.State getOrCreateNamedState(com.endeca.mdex.eql_parser.types.ParseQuery parseQuery,
java.lang.String stateName)
DiscoveryServiceUtil.getOrCreateNamedState(Request, String).parseQuery - a request to eql_parserstateName - name of a State to seek in parseQueryprotected static com.endeca.mdex.eql_parser.types.State getNamedState(com.endeca.mdex.eql_parser.types.ParseQuery parseQuery,
java.lang.String stateName)
throws StateNotFoundException
DiscoveryServiceUtil.getNamedState(Request, String).parseQuery - a request to eql_parserstateName - name of the State to seek in reqStateNotFoundException - if the specified named state cannot be found in the RequestCopyright 2003, 2014, Oracle and/or its affiliates. All rights reserved.