@ThingworxExtensionApiClass(since={6,6}, canInstantiate=true) public final class OrFilterCollection extends FilterCollection
FilterCollection
that aggregates one or more child filters with an "or" criteria.Constructor and Description |
---|
OrFilterCollection() |
Modifier and Type | Method and Description |
---|---|
boolean |
evaluateFilter(ValueCollection row) |
boolean |
evaluateValue(IPrimitiveType value) |
org.json.JSONObject |
toJSON()
Produces JSON with fields as follows: CommonPropertyNames.PROP_TYPE : FilterFactory.FILTER_COMPOSITE_OR
CommonPropertyNames.PROP_FILTERS : JSONArray of filter JSONs; see FilterCollection.getFilters()
|
addFilter, clearFilters, getFieldName, getFilter, getFilterCount, getFilterExpression, getFilters, resolveFields, setFieldName, setFilterExpression
@ThingworxExtensionApiMethod(since={6,6}) public boolean evaluateValue(IPrimitiveType value)
evaluateValue
in interface IFilter
evaluateValue
in class FilterCollection
@ThingworxExtensionApiMethod(since={6,6}) public boolean evaluateFilter(ValueCollection row)
evaluateFilter
in interface IFilter
evaluateFilter
in class FilterCollection
@ThingworxExtensionApiMethod(since={6,6}) public org.json.JSONObject toJSON() throws org.json.JSONException
CommonPropertyNames.PROP_TYPE
: FilterFactory.FILTER_COMPOSITE_OR
CommonPropertyNames.PROP_FILTERS
: JSONArray of filter JSONs; see FilterCollection.getFilters()
toJSON
in interface IFilter
toJSON
in class FilterCollection
org.json.JSONException
- Upon internal errors