java.lang.Object
java.lang.Enum<CimQuery>
io.github.eggy03.ferrumx.windows.constant.CimQuery
All Implemented Interfaces:
Serializable, Comparable<CimQuery>

public enum CimQuery extends Enum<CimQuery>
Enum representing the predefined WMI (CIM) queries used in the system.

Each constant holds a PowerShell query that queries a specific WMI class and returns the result in JSON format. These queries are typically executed using PowerShell and mapped to corresponding Java objects.

Since:
2.0.0
Author:
Egg-03
  • Enum Constant Details

    • BATTERY_QUERY

      public static final CimQuery BATTERY_QUERY
      Query to fetch the properties of Win32_Battery class
    • MONITOR_QUERY

      public static final CimQuery MONITOR_QUERY
      Query to fetch the properties of Win32_DesktopMonitor class
    • VIDEO_CONTROLLER_QUERY

      public static final CimQuery VIDEO_CONTROLLER_QUERY
      Query to fetch the properties of Win32_VideoController class
    • PROCESSOR_QUERY

      public static final CimQuery PROCESSOR_QUERY
      Query to fetch the properties of Win32_Processor class
    • PROCESSOR_CACHE_QUERY

      public static final CimQuery PROCESSOR_CACHE_QUERY
      Query to fetch the properties of Win32_CacheMemory class
    • BIOS_QUERY

      public static final CimQuery BIOS_QUERY
      Query to fetch the properties of Win32_BIOS class
    • MAINBOARD_QUERY

      public static final CimQuery MAINBOARD_QUERY
      Query to fetch the properties of Win32_Baseboard class
    • MAINBOARD_PORT_QUERY

      public static final CimQuery MAINBOARD_PORT_QUERY
      Query to fetch the properties of Win32_PortConnector class
    • PHYSICAL_MEMORY_QUERY

      public static final CimQuery PHYSICAL_MEMORY_QUERY
      Query to fetch the properties of Win32_PhysicalMemory class
    • NETWORK_ADAPTER_QUERY

      public static final CimQuery NETWORK_ADAPTER_QUERY
      Query to fetch the properties of Win32_NetworkAdapter class
    • NETWORK_ADAPTER_CONFIGURATION_QUERY

      public static final CimQuery NETWORK_ADAPTER_CONFIGURATION_QUERY
      Query to fetch the properties of Win32_NetworkAdapterConfiguration class
    • OPERATING_SYSTEM_QUERY

      public static final CimQuery OPERATING_SYSTEM_QUERY
      Query to fetch the properties of Win32_OperatingSystem class
    • DISK_QUERY

      public static final CimQuery DISK_QUERY
      Query to fetch the properties of Win32_DiskDrive class
    • DISK_PARTITION_QUERY

      public static final CimQuery DISK_PARTITION_QUERY
      Query to fetch the properties of Win32_DiskPartition class
    • COMPUTER_SYSTEM_PRODUCT

      public static final CimQuery COMPUTER_SYSTEM_PRODUCT
      Query to fetch the properties of Win32_ComputerSystemProduct class
  • Method Details

    • values

      public static CimQuery[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static CimQuery valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null