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 java.lang.Object implements IFilter
-
-
Constructor Summary
Constructors Constructor Description FilterCollection()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
getFilters
@ThingworxExtensionApiMethod(since={6,6}) public java.util.List<IFilter> getFilters()
-
getFilter
@ThingworxExtensionApiMethod(since={6,6}) public IFilter getFilter(int i)
-
addFilter
@ThingworxExtensionApiMethod(since={6,6}) public void addFilter(IFilter filter)
-
clearFilters
@ThingworxExtensionApiMethod(since={6,6}) public void clearFilters()
-
getFilterCount
@ThingworxExtensionApiMethod(since={6,6}) public int getFilterCount()
-
getFieldName
@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String getFieldName()
- Specified by:
getFieldName
in interfaceIFilter
-
setFieldName
@ThingworxExtensionApiMethod(since={6,6}) public void setFieldName(java.lang.String value)
- Specified by:
setFieldName
in interfaceIFilter
-
setFilterExpression
@Deprecated @ThingworxExtensionApiMethod(since={6,6}, deprecatedSince={7,1}) public void setFilterExpression(java.lang.String expression)
Deprecated.Description copied from interface:IFilter
Sets the filter expression.- Specified by:
setFilterExpression
in interfaceIFilter
- Parameters:
expression
- the filter expression- See Also:
IFilter.getFilterExpression()
-
evaluateValue
@ThingworxExtensionApiMethod(since={6,6}) public boolean evaluateValue(IPrimitiveType value)
- Specified by:
evaluateValue
in interfaceIFilter
-
evaluateFilter
@ThingworxExtensionApiMethod(since={6,6}) public boolean evaluateFilter(ValueCollection row)
- Specified by:
evaluateFilter
in interfaceIFilter
-
getFilterExpression
@Deprecated @ThingworxExtensionApiMethod(since={6,6}, deprecatedSince={7,1}) public java.lang.String getFilterExpression()
Deprecated.Description copied from interface:IFilter
Gets the filter expression.- Specified by:
getFilterExpression
in interfaceIFilter
- Returns:
- the filter expression
- See Also:
IFilter.setFilterExpression(String)
-
resolveFields
@ThingworxExtensionApiMethod(since={6,6}) public void resolveFields(DataShapeDefinition fields)
- Specified by:
resolveFields
in interfaceIFilter
-
toJSON
@ThingworxExtensionApiMethod(since={6,6}) public org.json.JSONObject toJSON() throws org.json.JSONException
Description copied from interface:IFilter
Produces JSON representation of this filter.
-
-