Class EvarFilter

java.lang.Object
com.day.cq.analytics.sitecatalyst.EvarFilter
All Implemented Interfaces:
Filter
Direct Known Subclasses:
MerchandisingFilter

public class EvarFilter extends Object implements Filter
  • Constructor Details

    • EvarFilter

      public EvarFilter()
  • Method Details

    • filter

      public Boolean filter(JSONObject obj)
      Description copied from interface: Filter
      Returns true if variable is of the correct type, false otherwise.
      Specified by:
      filter in interface Filter
      Parameters:
      obj - Variable object
      Returns:
      true if variable has needed properties, false otherwise
    • indexOf

      public Boolean indexOf(JSONObject obj, String query)
      Description copied from interface: Filter
      Returns true if one of its properties does contain the query string, false otherwise.
      Specified by:
      indexOf in interface Filter
      Parameters:
      obj - Variable object
      query - Query string
      Returns:
      true if variable contains query string, false otherwise
    • getJSArray

      public String getJSArray(JSONObject obj)
      Description copied from interface: Filter
      Returns a String representation of a JS array for this JSONObject.
      Specified by:
      getJSArray in interface Filter
      Parameters:
      obj - Variable object
      Returns:
      String representaiton of a JS array (i.e ['evar1','My evar (eVar)'])