public class WmiUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
OHM_NAMESPACE |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Enum<T>> |
getDateString(com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<T> result,
T property,
int index)
Gets a Date value from a WmiResult as a String
|
static <T extends Enum<T>> |
getFloat(com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<T> result,
T property,
int index)
Gets a Float value from a WmiResult
|
static <T extends Enum<T>> |
getRefString(com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<T> result,
T property,
int index)
Gets a Reference value from a WmiResult as a String
|
static <T extends Enum<T>> |
getSint32(com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<T> result,
T property,
int index)
Gets a Sint32 value from a WmiResult.
|
static <T extends Enum<T>> |
getString(com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<T> result,
T property,
int index)
Gets a String value from a WmiResult
|
static <T extends Enum<T>> |
getUint16(com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<T> result,
T property,
int index)
Gets a Uint16 value from a WmiResult.
|
static <T extends Enum<T>> |
getUint32(com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<T> result,
T property,
int index)
Gets an UINT32 value from a WmiResult.
|
static <T extends Enum<T>> |
getUint32asLong(com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<T> result,
T property,
int index)
Gets an UINT32 value from a WmiResult as a long, preserving the
unsignedness.
|
static <T extends Enum<T>> |
getUint64(com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<T> result,
T property,
int index)
Gets a Uint64 value from a WmiResult (parsing the String).
|
static <T extends Enum<T>> |
queryToString(com.sun.jna.platform.win32.COM.WbemcliUtil.WmiQuery<T> query)
Translate a WmiQuery to the actual query string
|
public static final String OHM_NAMESPACE
public static <T extends Enum<T>> String queryToString(com.sun.jna.platform.win32.COM.WbemcliUtil.WmiQuery<T> query)
T - The properties enumquery - The WmiQuery objectpublic static <T extends Enum<T>> String getString(com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<T> result, T property, int index)
T - The enum type containing the property keysresult - The WmiResult from which to fetch the valueproperty - The property (column) to fetchindex - The index (row) to fetchpublic static <T extends Enum<T>> String getDateString(com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<T> result, T property, int index)
T - The enum type containing the property keysresult - The WmiResult from which to fetch the valueproperty - The property (column) to fetchindex - The index (row) to fetchpublic static <T extends Enum<T>> String getRefString(com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<T> result, T property, int index)
T - The enum type containing the property keysresult - The WmiResult from which to fetch the valueproperty - The property (column) to fetchindex - The index (row) to fetchpublic static <T extends Enum<T>> long getUint64(com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<T> result, T property, int index)
T - The enum type containing the property keysresult - The WmiResult from which to fetch the valueproperty - The property (column) to fetchindex - The index (row) to fetchpublic static <T extends Enum<T>> int getUint32(com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<T> result, T property, int index)
T - The enum type containing the property keysresult - The WmiResult from which to fetch the valueproperty - The property (column) to fetchindex - The index (row) to fetchpublic static <T extends Enum<T>> long getUint32asLong(com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<T> result, T property, int index)
T - The enum type containing the property keysresult - The WmiResult from which to fetch the valueproperty - The property (column) to fetchindex - The index (row) to fetchpublic static <T extends Enum<T>> int getSint32(com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<T> result, T property, int index)
T - The enum type containing the property keysresult - The WmiResult from which to fetch the valueproperty - The property (column) to fetchindex - The index (row) to fetchpublic static <T extends Enum<T>> int getUint16(com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<T> result, T property, int index)
T - The enum type containing the property keysresult - The WmiResult from which to fetch the valueproperty - The property (column) to fetchindex - The index (row) to fetchpublic static <T extends Enum<T>> float getFloat(com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<T> result, T property, int index)
T - The enum type containing the property keysresult - The WmiResult from which to fetch the valueproperty - The property (column) to fetchindex - The index (row) to fetchCopyright © 2010–2019 oshi. All rights reserved.