All Packages Class Hierarchy This Package Previous Next Index
Interface com.jobjects.jst.RegistryKey
- public interface RegistryKey
RegistryKey provides access to all methods associated
with the registry key. To get an appropriate instance of
the registry key for a system use RegistryManager.
Note: Only string values are supported at this time.
- See Also:
- RegistryManager, getServiceControlManager
-
KEY_CLASSES_ROOT
-
-
KEY_CURRENT_USER
-
-
KEY_LOCAL_MACHINE
-
-
KEY_SUBKEY
-
-
KEY_USERS
-
-
exists()
- Returns true if this key exists.
-
getParent()
- Returns parent registry key or null if it doesn't exist.
-
getStringProperty(String)
- Retrieves the string value for a specified property name
associated with this registry key.
-
getTopLevelKeyType()
- Returns the type of the top level key.
-
properties()
- Enumerates the properties of this registry key.
-
putStringProperty(String, String)
- Stores string value for a specified property name
associated with this registry key.
-
removeKey()
- Deletes this key.
-
removeProperty(String)
- Removes property from this registry key.
-
subkeys()
- Enumerates the subkeys of this registry key.
KEY_SUBKEY
public static final int KEY_SUBKEY
KEY_LOCAL_MACHINE
public static final int KEY_LOCAL_MACHINE
KEY_CURRENT_USER
public static final int KEY_CURRENT_USER
KEY_USERS
public static final int KEY_USERS
KEY_CLASSES_ROOT
public static final int KEY_CLASSES_ROOT
putStringProperty
public abstract void putStringProperty(String name,
String value) throws RegistryException
- Stores string value for a specified property name
associated with this registry key.
- Parameters:
- name - property name
- value - property value
getStringProperty
public abstract String getStringProperty(String name) throws RegistryException
- Retrieves the string value for a specified property name
associated with this registry key.
- Parameters:
- name - property name
- Returns:
- property value or null if does not exist
removeProperty
public abstract void removeProperty(String name) throws RegistryException
- Removes property from this registry key.
removeKey
public abstract void removeKey() throws RegistryException
- Deletes this key.
This method cannot delete a key that has subkeys.
properties
public abstract Enumeration properties() throws RegistryException
- Enumerates the properties of this registry key.
- Returns:
- enumeration of property names
subkeys
public abstract Enumeration subkeys() throws RegistryException
- Enumerates the subkeys of this registry key.
- Returns:
- enumeration of subkey names
getParent
public abstract RegistryKey getParent()
- Returns parent registry key or null if it doesn't exist.
exists
public abstract boolean exists() throws RegistryException
- Returns true if this key exists.
getTopLevelKeyType
public abstract int getTopLevelKeyType()
- Returns the type of the top level key.
All Packages Class Hierarchy This Package Previous Next Index