|
|||||||||
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.EQLFilter
public class EQLFilter
This class makes it possible to set Endeca Query Language filters on a QueryState This filter is notably different from other implemented filter classes in that it does not merge its specified EQL filter with any other EQL filters that may already be specified on a query: it simply overwrites whatever EQL filter was previously specified. As a consequence, if more than EQLFilter object is in a QueryState, the EQL filter on an ENEQuery constructed from the QueryState will have the EQL filter of whichever EQLFilter happened to get applied last. EQL Filters are only supported on ENE presentation API data sources. Attempting to apply an EQLFilter to a discovery service data source will result in a QueryFunctionUnsupportedException.
Field Summary |
---|
Fields inherited from class com.endeca.portal.data.functions.QueryFunction |
---|
CLASS_PROPERTY, operator |
Constructor Summary | |
---|---|
protected |
EQLFilter()
|
|
EQLFilter(org.json.JSONObject jsonObject)
|
|
EQLFilter(java.lang.String eqlFilter)
|
Method Summary | |
---|---|
void |
applyToDiscoveryServiceQuery(com.endeca.mdex.conversation.Request query)
Apply this function to a Request. |
void |
applyToENEQuery(com.endeca.navigation.ENEQuery query)
Apply this function to an ENEQuery. |
java.lang.String |
getEqlFilter()
|
java.util.List<java.lang.reflect.Method> |
getGetters()
Return the list of property getters on this function. |
java.util.List<java.lang.reflect.Method> |
getSetters()
Return the list of property setters on this function. |
void |
setEqlFilter(java.lang.String eqlFilter)
|
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.QueryFunction |
---|
clone, equals, equals, getInstance, getInstance, getName, getOperator, hashCode, init, setName, setOperator, setOperator, toJSON, toXML |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected EQLFilter()
public EQLFilter(org.json.JSONObject jsonObject) throws org.json.JSONException, java.lang.IllegalArgumentException, java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
org.json.JSONException
java.lang.IllegalArgumentException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.reflect.InvocationTargetException
public EQLFilter(java.lang.String eqlFilter)
Method Detail |
---|
public java.lang.String getEqlFilter()
public void setEqlFilter(java.lang.String eqlFilter)
public java.util.List<java.lang.reflect.Method> getSetters()
QueryFunction
private static List setters = Reflection.getSetters(MyFunctionClass.class);
\@Override
public List getSetters() {
return setters;
}
getSetters
in class QueryFunction
public java.util.List<java.lang.reflect.Method> getGetters()
QueryFunction
private static List getters = Reflection.getGetters(MyFunctionClass.class);
\@Override
public List getGetters() {
return getters;
}
getGetters
in class QueryFunction
public void applyToENEQuery(com.endeca.navigation.ENEQuery query)
QueryFunction
applyToENEQuery
in class QueryFunction
public void applyToDiscoveryServiceQuery(com.endeca.mdex.conversation.Request query) throws QueryFunctionUnsupportedException
QueryFunction
applyToDiscoveryServiceQuery
in class QueryFunction
QueryFunctionUnsupportedException
public 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 |