Package net.aifusion.metamodel
Class FqlFilter
java.lang.Object
net.aifusion.metamodel.FqlFilter
- All Implemented Interfaces:
CimFilter
Create a CimFilter based on DMTF FQL specification. See DSP0212
- Author:
- Sharad Singhal
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the query string defined in the filterboolean
satisfies
(StructureValue value, Repository repository) Check if the filter is satisfied by the given structure valuevoid
setVariable
(String variableName, DataValue value) Set a delayed constant value in this filtertoString()
toTree()
Get the tree representation of this filter
-
Constructor Details
-
FqlFilter
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
Description copied from interface:CimFilter
Check if the filter is satisfied by the given structure value -
setVariable
Description copied from interface:CimFilter
Set a delayed constant value in this filter- Specified by:
setVariable
in interfaceCimFilter
- Parameters:
variableName
- - name of the variable (must be in form '$' name '$')value
- - data value to set for this variable
-
toTree
Get the tree representation of this filter- Returns:
- - tree representation of this filter
-
toString
-
getFilterQuery
Description copied from interface:CimFilter
Get the query string defined in the filter- Specified by:
getFilterQuery
in interfaceCimFilter
- Returns:
- - filter query string
-