|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.endeca.portal.data.functions.QueryFunction com.endeca.portal.data.functions.QueryFilter com.endeca.portal.data.functions.LQLFilter com.endeca.portal.data.functions.ArbitraryLQLASTFilter
public abstract class ArbitraryLQLASTFilter
Abstract superclass for DataSourceFilter
and SelectionFilter
. This superclass
contains the bulk of the implementation for those classes.
Field Summary | |
---|---|
protected java.lang.String |
expressionString
|
protected java.lang.String |
filterString
|
Fields inherited from class com.endeca.portal.data.functions.QueryFunction |
---|
CLASS_PROPERTY |
Constructor Summary | |
---|---|
protected |
ArbitraryLQLASTFilter()
|
|
ArbitraryLQLASTFilter(com.endeca.mdex.lql_parser.types.ExpressionBase expression)
|
|
ArbitraryLQLASTFilter(java.lang.String name,
com.endeca.mdex.lql_parser.types.ExpressionBase expression)
|
Method Summary | |
---|---|
com.endeca.mdex.lql_parser.types.ExpressionBase |
getExpression()
gets the LQL expression in object form |
java.lang.String |
getExpressionString()
Returns an XML representation of this filter's LQL AST. |
void |
initializeFromJSON(MDEXState mdexState)
This method is called when constructing a MDEXState's initialQueryState from a json object. |
void |
setExpression(com.endeca.mdex.lql_parser.types.ExpressionBase expression)
sets the LQL expression from an object form. |
void |
setExpressionString(java.lang.String exprString)
Sets this filter'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.LQLFilter |
---|
applyToDiscoveryServiceQuery, applyToLQLFilter |
Methods inherited from class com.endeca.portal.data.functions.QueryFunction |
---|
beforeQueryStateAdd, clone, equals, equals, getName, hashCode, setName |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String expressionString
protected java.lang.String filterString
Constructor Detail |
---|
protected ArbitraryLQLASTFilter()
public ArbitraryLQLASTFilter(com.endeca.mdex.lql_parser.types.ExpressionBase expression)
public ArbitraryLQLASTFilter(java.lang.String name, com.endeca.mdex.lql_parser.types.ExpressionBase expression)
Method Detail |
---|
public void initializeFromJSON(MDEXState mdexState) throws QueryFunctionInitializationException
QueryFunction
ArbitraryLQLASTFilter
classes use this technique to allow different params/member vars for initialization
from json vs. initialization programmatically from within Java.
initializeFromJSON
in class QueryFunction
mdexState
- the MDEXState object on which this QueryFunction exists
QueryFunctionInitializationException
public java.lang.String getExpressionString()
LQLUtils.expressionToFilterString(ExpressionBase)
.
public void setExpressionString(java.lang.String exprString)
setExpression(ExpressionBase)
. The XML input should have
previously been generated by getExpressionString()
or LQLUtils.expressionToFilterString(ExpressionBase)
.
We recommend that users do not call this method directly. This method exists is required
for deserialization of QueryState
objects.
exprString
- XML representation of the expressionpublic com.endeca.mdex.lql_parser.types.ExpressionBase getExpression()
public void setExpression(com.endeca.mdex.lql_parser.types.ExpressionBase expression)
expression
- the LQL expression in object formpublic 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 |