Package com.thingworx.types.data.filters
Class FilterCollection
java.lang.Object
com.thingworx.types.data.filters.FilterCollection
- All Implemented Interfaces:
IFilter
- Direct Known Subclasses:
AndFilterCollection
,OrFilterCollection
@ThingworxExtensionApiClass(since={6,6},
canInstantiate=true)
public class FilterCollection
extends Object
implements IFilter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
boolean
boolean
evaluateValue
(IPrimitiveType value) getFilter
(int i) int
Deprecated.void
resolveFields
(DataShapeDefinition fields) void
setFieldName
(String value) void
setFilterExpression
(String expression) Deprecated.org.json.JSONObject
toJSON()
Produces JSON representation of this filter.
-
Constructor Details
-
FilterCollection
public FilterCollection()
-
-
Method Details
-
getFilters
-
getFilter
-
addFilter
-
clearFilters
-
getFilterCount
-
getFieldName
- Specified by:
getFieldName
in interfaceIFilter
-
setFieldName
- Specified by:
setFieldName
in interfaceIFilter
-
setFilterExpression
@Deprecated @ThingworxExtensionApiMethod(since={6,6}, deprecatedSince={7,1}) public void setFilterExpression(String expression) Deprecated.Description copied from interface:IFilter
Sets the filter expression.- Specified by:
setFilterExpression
in interfaceIFilter
- Parameters:
expression
- the filter expression- See Also:
-
evaluateValue
- Specified by:
evaluateValue
in interfaceIFilter
-
evaluateFilter
- Specified by:
evaluateFilter
in interfaceIFilter
-
getFilterExpression
@Deprecated @ThingworxExtensionApiMethod(since={6,6}, deprecatedSince={7,1}) public String getFilterExpression()Deprecated.Description copied from interface:IFilter
Gets the filter expression.- Specified by:
getFilterExpression
in interfaceIFilter
- Returns:
- the filter expression
- See Also:
-
resolveFields
- Specified by:
resolveFields
in interfaceIFilter
-
toJSON
@ThingworxExtensionApiMethod(since={6,6}) public org.json.JSONObject toJSON() throws org.json.JSONExceptionDescription copied from interface:IFilter
Produces JSON representation of this filter.
-