Package com.thingworx.types.data.filters
Class AndFilterCollection
java.lang.Object
com.thingworx.types.data.filters.FilterCollection
com.thingworx.types.data.filters.AndFilterCollection
- All Implemented Interfaces:
IFilter
@ThingworxExtensionApiClass(since={6,6},
canInstantiate=true)
public final class AndFilterCollection
extends FilterCollection
FilterCollection
that aggregates one or more child filters with an "and" criteria.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.json.JSONObject
toJSON()
Produces JSON representation of this filter.Methods inherited from class com.thingworx.types.data.filters.FilterCollection
addFilter, clearFilters, evaluateFilter, evaluateValue, getFieldName, getFilter, getFilterCount, getFilterExpression, getFilters, resolveFields, setFieldName, setFilterExpression
-
Constructor Details
-
AndFilterCollection
public AndFilterCollection()
-
-
Method Details
-
toJSON
@ThingworxExtensionApiMethod(since={6,6}) public org.json.JSONObject toJSON() throws org.json.JSONException
Produces JSON representation of this filter. Fields are as follows:CommonPropertyNames.PROP_TYPE
:FilterFactory.FILTER_COMPOSITE_AND
CommonPropertyNames.PROP_FILTERS
: JSONArray of filter JSONs; seeFilterCollection.getFilters()
- Specified by:
toJSON
in interfaceIFilter
- Overrides:
toJSON
in classFilterCollection
- Returns:
- JSON representation of this filter
- Throws:
org.json.JSONException
- Upon internal errors
-