Interface Filter
- All Known Implementing Classes:
EvarFilter,EventFilter,MerchandisingFilter,TrafficVarFilter
public interface Filter
Represents a variable filter for filtering out variables from the final
result set.
-
Method Summary
Modifier and TypeMethodDescriptionfilter(JSONObject obj) Returns true if variable is of the correct type, false otherwise.getJSArray(JSONObject obj) Returns a String representation of a JS array for this JSONObject.indexOf(JSONObject obj, String query) Returnstrueif one of its properties does contain the query string,falseotherwise.
-
Method Details
-
filter
Returns true if variable is of the correct type, false otherwise.- Parameters:
obj- Variable object- Returns:
- true if variable has needed properties, false otherwise
-
indexOf
Returnstrueif one of its properties does contain the query string,falseotherwise.- Parameters:
obj- Variable objectquery- Query string- Returns:
- true if variable contains query string, false otherwise
-
getJSArray
Returns a String representation of a JS array for this JSONObject.- Parameters:
obj- Variable object- Returns:
- String representaiton of a JS array (i.e ['evar1','My evar (eVar)'])
-