Package com.thingworx.types.data.filters
Interface IFilter
- All Known Implementing Classes:
AndFilterCollection
,BetweenFilter
,FilterCollection
,LikeFilter
,MissingValueFilter
,NearFilter
,OrFilterCollection
,RangeFilter
,SetFilter
,TagFilter
Common interface for filter criteria for use with
Query
.-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
evaluateValue
(IPrimitiveType value) Deprecated.no replacementvoid
resolveFields
(DataShapeDefinition fields) void
setFieldName
(String value) void
setFilterExpression
(String value) Deprecated.no replacementorg.json.JSONObject
toJSON()
Produces JSON representation of this filter.
-
Method Details
-
getFieldName
-
setFieldName
-
evaluateFilter
-
evaluateValue
-
getFilterExpression
@Deprecated @ThingworxExtensionApiMethod(since={6,6}, deprecatedSince={7,1}) String getFilterExpression()Deprecated.no replacement
Gets the filter expression.- Returns:
- the filter expression
- See Also:
-
setFilterExpression
@Deprecated @ThingworxExtensionApiMethod(since={6,6}, deprecatedSince={7,1}) void setFilterExpression(String value) Deprecated.no replacement
Sets the filter expression.- Parameters:
value
- the filter expression- See Also:
-
resolveFields
-
toJSON
@ThingworxExtensionApiMethod(since={6,6}) org.json.JSONObject toJSON() throws org.json.JSONException
Produces JSON representation of this filter.- Returns:
- JSON representation of this filter
- Throws:
org.json.JSONException
- Upon internal errors
-