|
|||||||||
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.RangeFilter
public class RangeFilter
This filter class allows range filters to be added to QueryState instances. Currently, only supported on ENE presentation API data sources, not discovery service data sources.
Nested Class Summary | |
---|---|
static class |
RangeFilter.RangeFilterCreationException
|
static class |
RangeFilter.RangeOperator
|
static class |
RangeFilter.RangeOperatorNotSupportedException
|
static class |
RangeFilter.RangeType
|
static class |
RangeFilter.RangeTypeNotSupportedException
|
Field Summary |
---|
Fields inherited from class com.endeca.portal.data.functions.QueryFunction |
---|
CLASS_PROPERTY, operator |
Constructor Summary | |
---|---|
protected |
RangeFilter()
|
|
RangeFilter(org.json.JSONObject jsonObject)
|
|
RangeFilter(java.lang.String property,
RangeFilter.RangeType rangeType,
RangeFilter.RangeOperator rangeOperator,
java.lang.String value1)
|
|
RangeFilter(java.lang.String property,
RangeFilter.RangeType rangeType,
RangeFilter.RangeOperator rangeOperator,
java.lang.String value1,
java.lang.String value2)
|
|
RangeFilter(java.lang.String property,
RangeFilter.RangeType rangeType,
RangeFilter.RangeOperator rangeOperator,
java.lang.String value1,
java.lang.String value2,
java.lang.String value3)
|
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.util.List<java.lang.reflect.Method> |
getGetters()
Return the list of property getters on this function. |
java.lang.String |
getProperty()
|
RangeFilter.RangeOperator |
getRangeOperator()
|
RangeFilter.RangeType |
getRangeType()
|
java.util.List<java.lang.reflect.Method> |
getSetters()
Return the list of property setters on this function. |
java.lang.String |
getValue1()
|
java.lang.String |
getValue2()
|
java.lang.String |
getValue3()
|
void |
setProperty(java.lang.String property)
|
void |
setRangeOperator(RangeFilter.RangeOperator rangeOperator)
|
void |
setRangeOperator(java.lang.String rangeOperator)
|
void |
setRangeType(RangeFilter.RangeType rangeType)
|
void |
setRangeType(java.lang.String rangeType)
|
void |
setValue1(java.lang.String value1)
|
void |
setValue2(java.lang.String value2)
|
void |
setValue3(java.lang.String value3)
|
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 RangeFilter()
public RangeFilter(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 RangeFilter(java.lang.String property, RangeFilter.RangeType rangeType, RangeFilter.RangeOperator rangeOperator, java.lang.String value1) throws RangeFilter.RangeFilterCreationException
RangeFilter.RangeFilterCreationException
public RangeFilter(java.lang.String property, RangeFilter.RangeType rangeType, RangeFilter.RangeOperator rangeOperator, java.lang.String value1, java.lang.String value2) throws RangeFilter.RangeFilterCreationException
RangeFilter.RangeFilterCreationException
public RangeFilter(java.lang.String property, RangeFilter.RangeType rangeType, RangeFilter.RangeOperator rangeOperator, java.lang.String value1, java.lang.String value2, java.lang.String value3) throws RangeFilter.RangeFilterCreationException
RangeFilter.RangeFilterCreationException
Method Detail |
---|
public java.lang.String getProperty()
public void setProperty(java.lang.String property)
public RangeFilter.RangeType getRangeType()
public void setRangeType(RangeFilter.RangeType rangeType)
public void setRangeType(java.lang.String rangeType) throws RangeFilter.RangeTypeNotSupportedException
RangeFilter.RangeTypeNotSupportedException
public RangeFilter.RangeOperator getRangeOperator()
public void setRangeOperator(RangeFilter.RangeOperator rangeOperator)
public void setRangeOperator(java.lang.String rangeOperator) throws RangeFilter.RangeOperatorNotSupportedException
RangeFilter.RangeOperatorNotSupportedException
public java.lang.String getValue1()
public void setValue1(java.lang.String value1)
public java.lang.String getValue2()
public void setValue2(java.lang.String value2)
public java.lang.String getValue3()
public void setValue3(java.lang.String value3)
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 |