Enum Cimv2

java.lang.Object
java.lang.Enum<Cimv2>
io.github.eggy03.ferrumx.windows.shell.query.Cimv2
All Implemented Interfaces:
Serializable, Comparable<Cimv2>

public enum Cimv2 extends Enum<Cimv2>
Enum representing the predefined WMI (CIM) queries for the classes available in the root/cimv2 namespace.

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

Since:
4.1.0
  • Enum Constant Details

    • WIN32_BATTERY

      public static final Cimv2 WIN32_BATTERY
      Query to fetch the properties of Win32_Battery class
      Since:
      4.1.0
    • WIN32_DESKTOP_MONITOR

      public static final Cimv2 WIN32_DESKTOP_MONITOR
      Query to fetch the properties of Win32_DesktopMonitor class
      Since:
      4.1.0
    • WIN32_VIDEO_CONTROLLER

      public static final Cimv2 WIN32_VIDEO_CONTROLLER
      Query to fetch the properties of Win32_VideoController class
      Since:
      4.1.0
    • WIN32_PROCESSOR

      public static final Cimv2 WIN32_PROCESSOR
      Query to fetch the properties of Win32_Processor class
      Since:
      4.1.0
    • WIN32_CACHE_MEMORY

      public static final Cimv2 WIN32_CACHE_MEMORY
      Query to fetch the properties of Win32_CacheMemory class
      Since:
      4.1.0
    • WIN32_ASSOCIATED_PROCESSOR_MEMORY

      public static final Cimv2 WIN32_ASSOCIATED_PROCESSOR_MEMORY
      Query to fetch the properties of Win32_AssociatedProcessorMemory class in a custom object
      Since:
      4.1.0
    • WIN32_BIOS

      public static final Cimv2 WIN32_BIOS
      Query to fetch the properties of Win32_BIOS class
      Since:
      4.1.0
    • WIN32_BASEBOARD

      public static final Cimv2 WIN32_BASEBOARD
      Query to fetch the properties of Win32_Baseboard class
      Since:
      4.1.0
    • WIN32_PORT_CONNECTOR

      public static final Cimv2 WIN32_PORT_CONNECTOR
      Query to fetch the properties of Win32_PortConnector class
      Since:
      4.1.0
    • WIN32_PHYSICAL_MEMORY

      public static final Cimv2 WIN32_PHYSICAL_MEMORY
      Query to fetch the properties of Win32_PhysicalMemory class
      Since:
      4.1.0
    • WIN32_NETWORK_ADAPTER

      public static final Cimv2 WIN32_NETWORK_ADAPTER
      Query to fetch the properties of Win32_NetworkAdapter class
      Since:
      4.1.0
    • WIN32_NETWORK_ADAPTER_CONFIGURATION

      public static final Cimv2 WIN32_NETWORK_ADAPTER_CONFIGURATION
      Query to fetch the properties of Win32_NetworkAdapterConfiguration class
      Since:
      4.1.0
    • WIN32_NETWORK_ADAPTER_SETTING

      public static final Cimv2 WIN32_NETWORK_ADAPTER_SETTING
      Query to fetch the properties of Win32_NetworkAdapterSetting in a custom object
      Since:
      4.1.0
    • WIN32_OPERATING_SYSTEM

      public static final Cimv2 WIN32_OPERATING_SYSTEM
      Query to fetch the properties of Win32_OperatingSystem class
      Since:
      4.1.0
    • WIN32_DISK_DRIVE

      public static final Cimv2 WIN32_DISK_DRIVE
      Query to fetch the properties of Win32_DiskDrive class
      Since:
      4.1.0
    • WIN32_DISK_PARTITION

      public static final Cimv2 WIN32_DISK_PARTITION
      Query to fetch the properties of Win32_DiskPartition class
      Since:
      4.1.0
    • WIN32_LOGICAL_DISK

      public static final Cimv2 WIN32_LOGICAL_DISK
      Query to fetch the properties of Win32_LogicalDisk class
      Since:
      4.1.0
    • WIN32_DISK_DRIVE_TO_DISK_PARTITION

      public static final Cimv2 WIN32_DISK_DRIVE_TO_DISK_PARTITION
      Query to fetch the properties of Win32_DiskDriveToDiskPartition class in a custom object
      Since:
      4.1.0
    • WIN32_LOGICAL_DISK_TO_PARTITION

      public static final Cimv2 WIN32_LOGICAL_DISK_TO_PARTITION
      Query to fetch the properties of Win32_LogicalDiskToPartition class in a custom object
      Since:
      4.1.0
    • WIN32_COMPUTER_SYSTEM

      public static final Cimv2 WIN32_COMPUTER_SYSTEM
      Query to fetch the properties of Win32_ComputerSystem class
      Since:
      4.1.0
    • WIN32_ENVIRONMENT

      public static final Cimv2 WIN32_ENVIRONMENT
      Query to fetch the properties of Win32_Environment class
      Since:
      4.1.0
    • WIN32_PRINTER

      public static final Cimv2 WIN32_PRINTER
      Query to fetch the properties of Win32_Printer class
      Since:
      4.1.0
    • WIN32_USER_ACCOUNT

      public static final Cimv2 WIN32_USER_ACCOUNT
      Query to fetch the properties of Win32_UserAccount class
      Since:
      4.1.0
    • WIN32_PROCESS

      public static final Cimv2 WIN32_PROCESS
      Query to fetch some select properties of Win32_Process class
      Since:
      4.1.0
    • WIN32_SOUND_DEVICE

      public static final Cimv2 WIN32_SOUND_DEVICE
      Query to fetch the properties of Win32_SoundDevice class
      Since:
      4.1.0
    • WIN32_PNP_ENTITY

      public static final Cimv2 WIN32_PNP_ENTITY
      Query to fetch the properties of Win32_PnPEntity class
  • Field Details

    • query

      @NonNull private final @NonNull String query
  • Constructor Details

    • Cimv2

      private Cimv2()
  • Method Details

    • values

      public static Cimv2[] 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 Cimv2 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
    • generateQuery

      @NotNull private static <T> @NotNull String generateQuery(@NonNull @NonNull Class<T> wmiClass)