public abstract class ArbitraryLQLASTFilter extends QueryFilter
DataSourceFilter
and SelectionFilter
. This superclass contains the bulk of the implementation for
those classes.Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
expressionString |
protected java.lang.String |
filterString |
filterId
CLASS_PROPERTY, VIEWKEY_PROPERTY
Modifier | Constructor and Description |
---|---|
protected |
ArbitraryLQLASTFilter() |
|
ArbitraryLQLASTFilter(com.endeca.mdex.eql_parser.types.ExpressionBase expression) |
|
ArbitraryLQLASTFilter(java.lang.String name,
com.endeca.mdex.eql_parser.types.ExpressionBase expression) |
Modifier and Type | Method and Description |
---|---|
com.endeca.mdex.eql_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 |
initialize(MDEXState mdexState,
javax.portlet.PortletRequest request) |
void |
initializeFromJSON(MDEXState mdexState)
This method is called when constructing a MDEXState's initialQueryState from a json object.
|
void |
setExpression(com.endeca.mdex.eql_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.
|
beforeQueryStateAdd, beforeQueryStateRemove, getFilterId, isBaseFilter, setBaseFilter, toGroovyFilter
applyToDiscoveryServiceQuery, applyToDiscoveryServiceQuery, clone, equals, equals, getCompareString, getName, getStateNameOverride, getVersion, getViewKey, hashCode, isInvalid, setInvalid, setName, setStateNameOverride, setVersion, setViewKey, upgrade
protected java.lang.String expressionString
protected java.lang.String filterString
protected ArbitraryLQLASTFilter()
public ArbitraryLQLASTFilter(com.endeca.mdex.eql_parser.types.ExpressionBase expression)
public ArbitraryLQLASTFilter(java.lang.String name, com.endeca.mdex.eql_parser.types.ExpressionBase expression)
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 existsQueryFunctionInitializationException
public void initialize(MDEXState mdexState, javax.portlet.PortletRequest request) throws 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.eql_parser.types.ExpressionBase getExpression()
public void setExpression(com.endeca.mdex.eql_parser.types.ExpressionBase expression)
expression
- the LQL expression in object formpublic java.lang.String toString()
QueryFunction
toString
in class QueryFunction
Copyright 2003, 2014, Oracle and/or its affiliates. All rights reserved.