Class TrafficVarFilter

  • All Implemented Interfaces:
    Filter

    public class TrafficVarFilter
    extends java.lang.Object
    implements Filter
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Boolean filter​(JSONObject obj)
      Returns true if variable is of the correct type, false otherwise.
      java.lang.String getJSArray​(JSONObject obj)
      Returns a String representation of a JS array for this JSONObject.
      java.lang.Boolean indexOf​(JSONObject obj, java.lang.String query)
      Returns true if one of its properties does contain the query string, false otherwise.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TrafficVarFilter

        public TrafficVarFilter()
    • Method Detail

      • filter

        public java.lang.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 java.lang.Boolean indexOf​(JSONObject obj,
                                         java.lang.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 java.lang.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)'])