Klasse IOKit.IORegistryEntry
- Alle implementierten Schnittstellen:
NativeMapped
- Bekannte direkte Unterklassen:
IOKit.IOService
- Umschließende Schnittstelle:
IOKit
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungConvenience method forIOKit.IORegistryEntryCreateCFProperties(com.sun.jna.platform.mac.IOKit.IORegistryEntry, com.sun.jna.ptr.PointerByReference, com.sun.jna.platform.mac.CoreFoundation.CFAllocatorRef, int)
to create a CF dictionary representation of this registry entry's property table.Convenience method forIOKit.IORegistryEntryCreateCFProperty(com.sun.jna.platform.mac.IOKit.IORegistryEntry, com.sun.jna.platform.mac.CoreFoundation.CFStringRef, com.sun.jna.platform.mac.CoreFoundation.CFAllocatorRef, int)
to create a CF representation of this registry entry's property.getBooleanProperty
(String key) Convenience method to get aBoolean
value from this IO Registry Entry.byte[]
Convenience method to get abyte
array value from this IO Registry Entry.getChildEntry
(String plane) Convenience method forIOKit.IORegistryEntryGetChildEntry(com.sun.jna.platform.mac.IOKit.IORegistryEntry, java.lang.String, com.sun.jna.ptr.PointerByReference)
to return the first child of this registry entry in a plane.getChildIterator
(String plane) Convenience method forIOKit.IORegistryEntryGetChildIterator(com.sun.jna.platform.mac.IOKit.IORegistryEntry, java.lang.String, com.sun.jna.ptr.PointerByReference)
to return an iterator over this registry entry’s child entries in a plane.getDoubleProperty
(String key) Convenience method to get aDouble
value from this IO Registry Entry.getIntegerProperty
(String key) Convenience method to get anInteger
value from this IO Registry Entry.getLongProperty
(String key) Convenience method to get aLong
value from this IO Registry Entry.getName()
Convenience method forIOKit.IORegistryEntryGetName(com.sun.jna.platform.mac.IOKit.IORegistryEntry, com.sun.jna.Pointer)
to return a name assigned to this registry entry.getParentEntry
(String plane) Convenience method forIOKit.IORegistryEntryGetParentEntry(com.sun.jna.platform.mac.IOKit.IORegistryEntry, java.lang.String, com.sun.jna.ptr.PointerByReference)
to return the first parent of this registry entry in a plane.long
Convenience method forIOKit.IORegistryEntryGetRegistryEntryID(com.sun.jna.platform.mac.IOKit.IORegistryEntry, com.sun.jna.ptr.LongByReference)
to return an ID for this registry entry that is global to all tasks.getStringProperty
(String key) Convenience method to get aString
value from this IO Registry Entry.(Package privat) CoreFoundation.CFTypeRef
searchCFProperty
(String plane, CoreFoundation.CFStringRef key, int options) Convenience method forIOKit.IORegistryEntrySearchCFProperty(com.sun.jna.platform.mac.IOKit.IORegistryEntry, java.lang.String, com.sun.jna.platform.mac.CoreFoundation.CFStringRef, com.sun.jna.platform.mac.CoreFoundation.CFAllocatorRef, int)
to create a CF representation of a registry entry's property searched from this object.Von Klasse geerbte Methoden com.sun.jna.platform.mac.IOKit.IOObject
conformsTo, release
Von Klasse geerbte Methoden com.sun.jna.PointerType
equals, fromNative, getPointer, hashCode, nativeType, setPointer, toNative, toString
-
Konstruktordetails
-
IORegistryEntry
public IORegistryEntry() -
IORegistryEntry
-
-
Methodendetails
-
getRegistryEntryID
public long getRegistryEntryID()Convenience method forIOKit.IORegistryEntryGetRegistryEntryID(com.sun.jna.platform.mac.IOKit.IORegistryEntry, com.sun.jna.ptr.LongByReference)
to return an ID for this registry entry that is global to all tasks.- Gibt zurück:
- the ID.
- Löst aus:
IOReturnException
- if the ID could not be retrieved.
-
getName
Convenience method forIOKit.IORegistryEntryGetName(com.sun.jna.platform.mac.IOKit.IORegistryEntry, com.sun.jna.Pointer)
to return a name assigned to this registry entry.- Gibt zurück:
- The name
- Löst aus:
IOReturnException
- if the name could not be retrieved.
-
getChildIterator
Convenience method forIOKit.IORegistryEntryGetChildIterator(com.sun.jna.platform.mac.IOKit.IORegistryEntry, java.lang.String, com.sun.jna.ptr.PointerByReference)
to return an iterator over this registry entry’s child entries in a plane.- Parameter:
plane
- The name of an existing registry plane. Plane names are defined inIOKitKeys.h
, for example,kIOServicePlane
.- Gibt zurück:
- The iterator
- Löst aus:
IOReturnException
- if the iterator could not be retrieved.
-
getChildEntry
Convenience method forIOKit.IORegistryEntryGetChildEntry(com.sun.jna.platform.mac.IOKit.IORegistryEntry, java.lang.String, com.sun.jna.ptr.PointerByReference)
to return the first child of this registry entry in a plane.- Parameter:
plane
- The name of an existing registry plane.- Gibt zurück:
- The child registry entry, if a child exists, null otherwise
- Löst aus:
IOReturnException
- if the entry exists but could not be retrieved.
-
getParentEntry
Convenience method forIOKit.IORegistryEntryGetParentEntry(com.sun.jna.platform.mac.IOKit.IORegistryEntry, java.lang.String, com.sun.jna.ptr.PointerByReference)
to return the first parent of this registry entry in a plane.- Parameter:
plane
- The name of an existing registry plane.- Gibt zurück:
- The parent registry entry, if a parent exists, null otherwise
- Löst aus:
IOReturnException
- if the entry exists but could not be retrieved.
-
createCFProperty
Convenience method forIOKit.IORegistryEntryCreateCFProperty(com.sun.jna.platform.mac.IOKit.IORegistryEntry, com.sun.jna.platform.mac.CoreFoundation.CFStringRef, com.sun.jna.platform.mac.CoreFoundation.CFAllocatorRef, int)
to create a CF representation of this registry entry's property.- Parameter:
key
- ACFString
specifying the property name.- Gibt zurück:
- A CF container is created and returned the caller on success.
The caller should release with
CoreFoundation.CFRelease(com.sun.jna.platform.mac.CoreFoundation.CFTypeRef)
.
-
createCFProperties
Convenience method forIOKit.IORegistryEntryCreateCFProperties(com.sun.jna.platform.mac.IOKit.IORegistryEntry, com.sun.jna.ptr.PointerByReference, com.sun.jna.platform.mac.CoreFoundation.CFAllocatorRef, int)
to create a CF dictionary representation of this registry entry's property table.- Gibt zurück:
- The property table.
The caller should release with
CoreFoundation.CFRelease(com.sun.jna.platform.mac.CoreFoundation.CFTypeRef)
. - Löst aus:
IOReturnException
- if the entry could not be retrieved.
-
searchCFProperty
CoreFoundation.CFTypeRef searchCFProperty(String plane, CoreFoundation.CFStringRef key, int options) Convenience method forIOKit.IORegistryEntrySearchCFProperty(com.sun.jna.platform.mac.IOKit.IORegistryEntry, java.lang.String, com.sun.jna.platform.mac.CoreFoundation.CFStringRef, com.sun.jna.platform.mac.CoreFoundation.CFAllocatorRef, int)
to create a CF representation of a registry entry's property searched from this object.- Parameter:
plane
- The name of an existing registry plane. Plane names are defined inIOKitKeys.h
, for example,kIOServicePlane
.key
- ACFString
specifying the property name.options
-IOKit.kIORegistryIterateRecursively
may be set to recurse automatically into the registry hierarchy. Without this option, this method degenerates into the standardIOKit.IORegistryEntryCreateCFProperty(com.sun.jna.platform.mac.IOKit.IORegistryEntry, com.sun.jna.platform.mac.CoreFoundation.CFStringRef, com.sun.jna.platform.mac.CoreFoundation.CFAllocatorRef, int)
call.IOKit.kIORegistryIterateParents
may be set to iterate the parents of the entry, in place of the children.- Gibt zurück:
- A CF container is created and returned the caller on success. The caller should release with CFRelease.
-
getStringProperty
Convenience method to get aString
value from this IO Registry Entry.- Parameter:
key
- The string name of the key to retrieve- Gibt zurück:
- The value of the registry entry if it exists;
null
otherwise
-
getLongProperty
Convenience method to get aLong
value from this IO Registry Entry.- Parameter:
key
- The string name of the key to retrieve- Gibt zurück:
- The value of the registry entry if it exists;
null
otherwiseThis method assumes a 64-bit integer is stored and does not do type checking. If this object's type differs from the return type, and the conversion is lossy or the return value is out of range, then this method returns an approximate value.
-
getIntegerProperty
Convenience method to get anInteger
value from this IO Registry Entry.- Parameter:
key
- The string name of the key to retrieve- Gibt zurück:
- The value of the registry entry if it exists;
null
otherwiseThis method assumes a 32-bit integer is stored and does not do type checking. If this object's type differs from the return type, and the conversion is lossy or the return value is out of range, then this method returns an approximate value.
-
getDoubleProperty
Convenience method to get aDouble
value from this IO Registry Entry.- Parameter:
key
- The string name of the key to retrieve- Gibt zurück:
- The value of the registry entry if it exists;
null
otherwiseThis method assumes a floating point value is stored and does not do type checking. If this object's type differs from the return type, and the conversion is lossy or the return value is out of range, then this method returns an approximate value.
-
getBooleanProperty
Convenience method to get aBoolean
value from this IO Registry Entry.- Parameter:
key
- The string name of the key to retrieve- Gibt zurück:
- The value of the registry entry if it exists;
null
otherwise
-
getByteArrayProperty
Convenience method to get abyte
array value from this IO Registry Entry.- Parameter:
key
- The string name of the key to retrieve- Gibt zurück:
- The value of the registry entry if it exists;
null
otherwise
-