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.
  • 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 property is absent or null
    • 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 property is absent or null
    • 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