@ThingworxExtensionApiClass(since={6,6}, canInstantiate=true) public class FilterCollection extends java.lang.Object implements IFilter
Constructor and Description |
---|
FilterCollection() |
Modifier and Type | Method and Description |
---|---|
void |
addFilter(IFilter filter) |
void |
clearFilters() |
boolean |
evaluateFilter(ValueCollection row) |
boolean |
evaluateValue(IPrimitiveType value) |
java.lang.String |
getFieldName() |
IFilter |
getFilter(int i) |
int |
getFilterCount() |
java.lang.String |
getFilterExpression()
Deprecated.
|
java.util.List<IFilter> |
getFilters() |
void |
resolveFields(DataShapeDefinition fields) |
void |
setFieldName(java.lang.String value) |
void |
setFilterExpression(java.lang.String expression)
Deprecated.
|
org.json.JSONObject |
toJSON()
Produces JSON representation of this filter. |
@ThingworxExtensionApiMethod(since={6,6}) public java.util.List<IFilter> getFilters()
@ThingworxExtensionApiMethod(since={6,6}) public IFilter getFilter(int i)
@ThingworxExtensionApiMethod(since={6,6}) public void addFilter(IFilter filter)
@ThingworxExtensionApiMethod(since={6,6}) public void clearFilters()
@ThingworxExtensionApiMethod(since={6,6}) public int getFilterCount()
@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String getFieldName()
getFieldName
in interface IFilter
@ThingworxExtensionApiMethod(since={6,6}) public void setFieldName(java.lang.String value)
setFieldName
in interface IFilter
@Deprecated @ThingworxExtensionApiMethod(since={6,6}, deprecatedSince={7,1}) public void setFilterExpression(java.lang.String expression)
IFilter
setFilterExpression
in interface IFilter
expression
- the filter expressionIFilter.getFilterExpression()
@ThingworxExtensionApiMethod(since={6,6}) public boolean evaluateValue(IPrimitiveType value)
evaluateValue
in interface IFilter
@ThingworxExtensionApiMethod(since={6,6}) public boolean evaluateFilter(ValueCollection row)
evaluateFilter
in interface IFilter
@Deprecated @ThingworxExtensionApiMethod(since={6,6}, deprecatedSince={7,1}) public java.lang.String getFilterExpression()
IFilter
getFilterExpression
in interface IFilter
IFilter.setFilterExpression(String)
@ThingworxExtensionApiMethod(since={6,6}) public void resolveFields(DataShapeDefinition fields)
resolveFields
in interface IFilter
@ThingworxExtensionApiMethod(since={6,6}) public org.json.JSONObject toJSON() throws org.json.JSONException
IFilter