Enum StandardCimv2

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

public enum StandardCimv2 extends Enum<StandardCimv2>
Enum representing the predefined WMI (CIM) queries for the classes available in the root/StandardCimv2 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

    • MSFT_NET_ADAPTER

      public static final StandardCimv2 MSFT_NET_ADAPTER
      Query to fetch the properties of the MSFT_NetAdapter class

      Will not show hidden physical or logical network adapters unless explicitly stated

      Since:
      4.1.0
    • MSFT_NET_IP_ADDRESS

      public static final StandardCimv2 MSFT_NET_IP_ADDRESS
      Query to fetch the properties of the MSFT_NetIPAddress class
      Since:
      4.1.0
    • MSFT_NET_DNS_CLIENT_SERVER_ADDRESS

      public static final StandardCimv2 MSFT_NET_DNS_CLIENT_SERVER_ADDRESS
      Query to fetch the properties of the MSFT_NetDNSClientServerAddress class
      Since:
      4.1.0
    • MSFT_NET_CONNECTION_PROFILE

      public static final StandardCimv2 MSFT_NET_CONNECTION_PROFILE
      Query to fetch the properties of the MSFT_NetConnectionProfile class
      Since:
      4.1.0
  • Field Details

    • query

      @NonNull private final @NonNull String query
  • Constructor Details

    • StandardCimv2

      private StandardCimv2()
  • Method Details

    • values

      public static StandardCimv2[] 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 StandardCimv2 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 String prefix, @NonNull @NonNull Class<T> wmiEntity)