Package com.sun.jna.platform.win32.COM
Klasse WbemcliUtil.WmiResult<T extends Enum<T>>
java.lang.Object
com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<T>
- Umschließende Klasse:
WbemcliUtil
Helper class wrapping an EnumMap containing the results of a query.
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungint
getCIMType
(T property) Gets the CIM type from the WmiResult.int
Gets a value from the WmiResult, which may be null.int
Gets the Variant type from the WmiResult.
-
Konstruktordetails
-
WmiResult
- Parameter:
propertyEnum
- The enum associated with this map
-
-
Methodendetails
-
getValue
Gets a value from the WmiResult, which may be null. User must check for null and cast the result. Types correlate to the CIM Type of the enumerated WMI property and will be consistent for a given property, and may be validated by the user usinggetVtType(T)
or the Class of the returned Object.- Parameter:
property
- The property (column) to fetchindex
- The index (row) to fetch- Gibt zurück:
- The Object containing the specified value, which may be null
-
getVtType
Gets the Variant type from the WmiResult. The integer value is defined as a VT_* constant in theVariant
interface.- Parameter:
property
- The property (column) whose type to fetch- Gibt zurück:
- An integer representing the Variant type
-
getCIMType
Gets the CIM type from the WmiResult. The integer value is defined as a CIM_* constant in theWbemcli
interface.- Parameter:
property
- The property (column) whose type to fetch- Gibt zurück:
- An integer representing the CIM type
-
getResultCount
public int getResultCount()- Gibt zurück:
- The number of results in each mapped list
-