|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.endeca.portal.data.functions.QueryFunction
com.endeca.portal.data.functions.QueryConfig
com.endeca.portal.data.functions.LQLQueryConfig
public class LQLQueryConfig
| Field Summary | |
|---|---|
static java.lang.String |
AST_HANDLER_FUNCTION
|
static java.lang.String |
DEFAULT_ID
|
| Fields inherited from class com.endeca.portal.data.functions.QueryConfig |
|---|
id |
| Fields inherited from class com.endeca.portal.data.functions.QueryFunction |
|---|
CLASS_PROPERTY |
| Constructor Summary | |
|---|---|
protected |
LQLQueryConfig()
|
|
LQLQueryConfig(com.endeca.mdex.lql_parser.types.Query lqlQuery)
Construct a new LQLQueryConfig with a specified query in the pre-parsed ast format. |
|
LQLQueryConfig(java.lang.String id,
com.endeca.mdex.lql_parser.types.Query lqlQuery)
Construct a new LQLQueryConfig with a specified query in pre-parsed ast format. |
| Method Summary | |
|---|---|
void |
applyToDiscoveryServiceQuery(com.endeca.mdex.conversation.Request request)
Apply this function to a Request. |
com.endeca.mdex.lql_parser.types.Query |
getQuery()
gets the LQL expression in object form |
java.lang.String |
getQueryString()
Returns an XML representation of this query's LQL AST. |
void |
setQuery(com.endeca.mdex.lql_parser.types.Query lqlQuery)
sets the LQL query from an object form. |
void |
setQueryString(java.lang.String queryString)
Sets this query's LQL AST expression from an XML representation. |
java.lang.String |
toString()
This class' toString is abstract: all concrete subclasses are expected to provide an implementation. toString is used in comparing QueryFunction instances for equality, so if you implement a QueryFunction subclass it is important that your toString implementation be consistent and deterministic. |
| Methods inherited from class com.endeca.portal.data.functions.QueryConfig |
|---|
getId, setId |
| Methods inherited from class com.endeca.portal.data.functions.QueryFunction |
|---|
beforeQueryStateAdd, clone, equals, equals, getName, hashCode, initializeFromJSON, setName |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_ID
public static final java.lang.String AST_HANDLER_FUNCTION
| Constructor Detail |
|---|
protected LQLQueryConfig()
public LQLQueryConfig(com.endeca.mdex.lql_parser.types.Query lqlQuery)
lqlQuery -
public LQLQueryConfig(java.lang.String id,
com.endeca.mdex.lql_parser.types.Query lqlQuery)
id - A string id used to distinguish this function from otherslqlQuery - | Method Detail |
|---|
public com.endeca.mdex.lql_parser.types.Query getQuery()
public void setQuery(com.endeca.mdex.lql_parser.types.Query lqlQuery)
lqlQuery - the LQL query in object formpublic java.lang.String getQueryString()
LQLUtils.queryToString(Query).
public void setQueryString(java.lang.String queryString)
setQuery(Query). The XML input should have
previously been generated by getQueryString() or LQLUtils.queryToString(Query).
We recommend that users do not call this method directly. This method exists is required
for deserialization of QueryState objects.
queryString - XML representation of the expression
public void applyToDiscoveryServiceQuery(com.endeca.mdex.conversation.Request request)
throws QueryFunctionUnsupportedException
QueryFunction
applyToDiscoveryServiceQuery in class QueryFunctionQueryFunctionUnsupportedExceptionpublic java.lang.String toString()
QueryFunction
toString in class QueryFunction
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||