Package com.thingworx.types.data.filters
Class MissingValueFilter
- java.lang.Object
-
- com.thingworx.types.data.filters.MissingValueFilter
-
- All Implemented Interfaces:
IFilter
@ThingworxExtensionApiClass(since={6,6}, canInstantiate=true) public final class MissingValueFilter extends java.lang.Object implements IFilter
Filter which applies an "is null" (or "is not null") criteria.
-
-
Constructor Summary
Constructors Constructor Description MissingValueFilter(java.lang.String fieldName, boolean inclusive)
MissingValueFilter(java.lang.String fieldName, java.lang.Boolean inclusive)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
evaluateFilter(ValueCollection row)
boolean
evaluateValue(IPrimitiveType iPrimitive)
java.lang.String
getFieldName()
java.lang.String
getFilterExpression()
Deprecated.boolean
isInclusive()
void
resolveFields(DataShapeDefinition metadata)
void
setFieldName(java.lang.String value)
void
setFilterExpression(java.lang.String expression)
Deprecated.org.json.JSONObject
toJSON()
Produces JSON representation of this filter.
-
-
-
Constructor Detail
-
MissingValueFilter
@ThingworxExtensionApiMethod(since={6,6}) public MissingValueFilter(java.lang.String fieldName, java.lang.Boolean inclusive)
-
MissingValueFilter
@ThingworxExtensionApiMethod(since={6,6}) public MissingValueFilter(java.lang.String fieldName, boolean inclusive)
-
-
Method Detail
-
resolveFields
@ThingworxExtensionApiMethod(since={6,6}) public void resolveFields(DataShapeDefinition metadata)
- Specified by:
resolveFields
in interfaceIFilter
-
isInclusive
@ThingworxExtensionApiMethod(since={6,6}) public boolean isInclusive()
-
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()
-
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)
-
evaluateValue
@ThingworxExtensionApiMethod(since={6,6}) public boolean evaluateValue(IPrimitiveType iPrimitive)
- Specified by:
evaluateValue
in interfaceIFilter
-
evaluateFilter
@ThingworxExtensionApiMethod(since={6,6}) public boolean evaluateFilter(ValueCollection row)
- Specified by:
evaluateFilter
in interfaceIFilter
-
toJSON
@ThingworxExtensionApiMethod(since={6,6}) public org.json.JSONObject toJSON() throws org.json.JSONException
Produces JSON representation of this filter. Fields are as follows:
-
-