Package org.eclipse.cdt.utils
Class WindowsRegistry
- java.lang.Object
-
- org.eclipse.cdt.utils.WindowsRegistry
-
public abstract class WindowsRegistry extends java.lang.Object- Restriction:
- This class is not intended to be subclassed by clients.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedWindowsRegistry()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.lang.StringgetCurrentUserKeyName(java.lang.String subkey, int index)Given a subkey of HKEY_CURRENT_USER, and an index (starting from 0) to the key's array of sub keys, return the name of the indexed key.abstract java.lang.StringgetCurrentUserValue(java.lang.String subkey, java.lang.String name)Gets the registry value for the subkey of HKEY_CURRENT_USER with the given name.abstract java.lang.StringgetCurrentUserValueName(java.lang.String subkey, int index)Given a subkey of HKEY_CURRENT_USER, and an index (starting from 0) to the key's array of values, return the name of the indexed value.abstract java.util.Map<java.lang.String,java.lang.Object>getCurrentUserValues(java.lang.String subkey)Given a subkey of HKEY_CURRENT_USER, return the map of valueName => value.abstract java.lang.StringgetLocalMachineKeyName(java.lang.String subkey, int index)Given a subkey of HKEY_LOCAL_MACHINE, and an index (starting from 0) to the key's array of sub keys, return the name of the indexed key.abstract java.lang.StringgetLocalMachineValue(java.lang.String subkey, java.lang.String name)Gets the registry value for the subkey of HKEY_LOCAL_MACHINE with the given name.abstract java.lang.StringgetLocalMachineValueName(java.lang.String subkey, int index)Given a subkey of HKEY_LOCAL_MACHINE, and an index (starting from 0) to the key's array of values, return the name of the indexed value.abstract java.util.Map<java.lang.String,java.lang.Object>getLocalMachineValues(java.lang.String subkey)Given a subkey of HKEY_LOCAL_MACHINE, return the map of valueName => value.static WindowsRegistrygetRegistry()
-
-
-
Method Detail
-
getRegistry
public static WindowsRegistry getRegistry()
-
getLocalMachineValue
public abstract java.lang.String getLocalMachineValue(java.lang.String subkey, java.lang.String name)Gets the registry value for the subkey of HKEY_LOCAL_MACHINE with the given name. If problems occur, like the name is not found, null is returned.- Parameters:
subkey- subkey of HKEY_LOCAL_MACHINEname- name of the registry value- Returns:
- registry value or null if not found
-
getLocalMachineValues
public abstract java.util.Map<java.lang.String,java.lang.Object> getLocalMachineValues(java.lang.String subkey)
Given a subkey of HKEY_LOCAL_MACHINE, return the map of valueName => value. The return value is an empty map on error or when the subkey does not exist.- Parameters:
subkey- subkey of HKEY_LOCAL_MACHINE- Returns:
- valueName => value map of the entries in subkey
- Since:
- 6.1
-
getLocalMachineValueName
public abstract java.lang.String getLocalMachineValueName(java.lang.String subkey, int index)Given a subkey of HKEY_LOCAL_MACHINE, and an index (starting from 0) to the key's array of values, return the name of the indexed value. The return value is null on any error or when the index is invalid. The value name can be used in the above getLocalMachineValue() to retrieve the value data.- Parameters:
subkey- subkey of HKEY_LOCAL_MACHINEindex- index to the subkey's array of values, starting from 0.- Returns:
- name of registry value or null if not found
-
getLocalMachineKeyName
public abstract java.lang.String getLocalMachineKeyName(java.lang.String subkey, int index)Given a subkey of HKEY_LOCAL_MACHINE, and an index (starting from 0) to the key's array of sub keys, return the name of the indexed key. The return value is null on any error or when the index is invalid. The key name can be used in the above getLocalMachineValueName() to retrieve value names.- Parameters:
subkey- subkey of HKEY_LOCAL_MACHINEindex- index to the subkey's array of values, starting from 0.- Returns:
- name of registry value or null if not found
-
getCurrentUserValue
public abstract java.lang.String getCurrentUserValue(java.lang.String subkey, java.lang.String name)Gets the registry value for the subkey of HKEY_CURRENT_USER with the given name. If problems occur, like the name is not found, null is returned.- Parameters:
subkey- subkey of HKEY_CURRENT_USERname- name of the registry value- Returns:
- registry value or null if not found
-
getCurrentUserValues
public abstract java.util.Map<java.lang.String,java.lang.Object> getCurrentUserValues(java.lang.String subkey)
Given a subkey of HKEY_CURRENT_USER, return the map of valueName => value. The return value is an empty map on error or when the subkey does not exist.- Parameters:
subkey- subkey of HKEY_CURRENT_USER- Returns:
- valueName => value map of the entries in subkey
- Since:
- 6.1
-
getCurrentUserValueName
public abstract java.lang.String getCurrentUserValueName(java.lang.String subkey, int index)Given a subkey of HKEY_CURRENT_USER, and an index (starting from 0) to the key's array of values, return the name of the indexed value. The return value is null on any error or when the index is invalid. The value name can be used in the above getCurrentUserValue() to retrieve the value data.- Parameters:
subkey- subkey of HKEY_CURRENT_USERindex- index to the subkey's array of values, starting from 0.- Returns:
- name of registry value or null if not found
-
getCurrentUserKeyName
public abstract java.lang.String getCurrentUserKeyName(java.lang.String subkey, int index)Given a subkey of HKEY_CURRENT_USER, and an index (starting from 0) to the key's array of sub keys, return the name of the indexed key. The return value is null on any error or when the index is invalid. The key name can be used in the above getCurrentUserValueName() to retrieve value names.- Parameters:
subkey- subkey of HKEY_CURRENT_USERindex- index to the subkey's array of values, starting from 0.- Returns:
- name of registry value or null if not found
-
-