Package org.metricshub.wmi
Class WqlQuery
java.lang.Object
org.metricshub.wmi.WqlQuery
-
Method Summary
Modifier and TypeMethodDescriptionstatic WqlQuery
newInstance
(CharSequence wql) Parses the specified WQL query and returns a new instance of WqlQuerytoString()
-
Method Details
-
newInstance
Parses the specified WQL query and returns a new instance of WqlQuerySupported WQL syntaxes:
- SELECT * FROM Class
- SELECT PropA, PropB FROM Class
- SELECT PropA, PropB FROM Class WHERE condition
- ASSOCIATORS OF { objectId }
- ASSOCIATORS OF { objectId } WHERE condition
- SELECT * FROM ASSOCIATORS OF { objectId } WHERE condition
- SELECT PropA, PropB FROM ASSOCIATORS OF { objectId } WHERE condition
- Parameters:
wql
- The WQL query to parse- Returns:
- a new WqlQuery instance
- Throws:
WqlQuerySyntaxException
- when the specified WQL is invalid and cannot be parsedIllegalArgumentException
- if wql is null
-
getSelectedProperties
-
getSubPropertiesMap
-
getCleanWql
-
toString
-