Package org.metricshub.winrm
Class WqlRow
java.lang.Object
org.metricshub.winrm.WqlRow
One row of a WQL query result: an immutable, ordered view of the instance properties.
Property lookup is case-insensitive, matching WMI semantics.
A WMI array property is a single string, its elements joined with the client's array
separator (a|b, no trailing separator). WinRM sends no type information: a
one-element array reads like a scalar (a), and an empty or NULL array is left
out of the response, so the row has no such property.
-
Method Summary
-
Method Details
-
get
Get the value of a property. The lookup first tries the exact property name, then falls back to a case-insensitive match — WMI property names are case-insensitive.- Parameters:
property- the property name- Returns:
- the property value, or
nullwhen the row has no such property (a WMINULLis an empty string)
-
string
Get the value of a property as a string. Same lookup semantics asget(String).- Parameters:
property- the property name- Returns:
- the property value as a string, or
nullwhen the row has no such property (a WMINULLis an empty string)
-
asMap
Get all properties of the row, in the order the server returned them.- Returns:
- an unmodifiable ordered map of property names to values
-
toString
-