Class FqlFilter

java.lang.Object
net.aifusion.metamodel.FqlFilter
All Implemented Interfaces:
CimFilter

public class FqlFilter extends Object implements CimFilter
Create a CimFilter based on DMTF FQL specification. See DSP0212
Author:
Sharad Singhal
  • Constructor Details

    • FqlFilter

      public FqlFilter(String filterQuery)
      Create a CimFilter based on an extension of the DMTF FQL (DSP0212)
      Parameters:
      filterQuery - - String containing filter query
    • FqlFilter

      public FqlFilter()
      Create a null CimFilter-- selects all elements of the given type
      Parameters:
      objectPath - path to the structure to be searched
  • Method Details

    • satisfies

      public boolean satisfies(StructureValue value, Repository repository)
      Description copied from interface: CimFilter
      Check if the filter is satisfied by the given structure value
      Specified by:
      satisfies in interface CimFilter
      Parameters:
      value - - StructureValue to test
      repository - - Repository used to obtain transitive objects (if needed)
      Returns:
      - true if value satisfies the filter, false otherwise
    • setVariable

      public void setVariable(String variableName, DataValue value)
      Description copied from interface: CimFilter
      Set a delayed constant value in this filter
      Specified by:
      setVariable in interface CimFilter
      Parameters:
      variableName - - name of the variable (must be in form '$' name '$')
      value - - data value to set for this variable
    • toTree

      public String toTree()
      Get the tree representation of this filter
      Returns:
      - tree representation of this filter
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getFilterQuery

      public String getFilterQuery()
      Description copied from interface: CimFilter
      Get the query string defined in the filter
      Specified by:
      getFilterQuery in interface CimFilter
      Returns:
      - filter query string