Class WqlRow

java.lang.Object
org.metricshub.winrm.WqlRow

public final class WqlRow extends Object
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 Details

    • get

      public Object get(String property)
      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 null when the row has no such property (a WMI NULL is an empty string)
    • string

      public String string(String property)
      Get the value of a property as a string. Same lookup semantics as get(String).
      Parameters:
      property - the property name
      Returns:
      the property value as a string, or null when the row has no such property (a WMI NULL is an empty string)
    • asMap

      public Map<String,Object> 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

      public String toString()
      Overrides:
      toString in class Object