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

Variable Index

 o KEY_CLASSES_ROOT
 o KEY_CURRENT_USER
 o KEY_LOCAL_MACHINE
 o KEY_SUBKEY
 o KEY_USERS

Method Index

 o exists()
Returns true if this key exists.
 o getParent()
Returns parent registry key or null if it doesn't exist.
 o getStringProperty(String)
Retrieves the string value for a specified property name associated with this registry key.
 o getTopLevelKeyType()
Returns the type of the top level key.
 o properties()
Enumerates the properties of this registry key.
 o putStringProperty(String, String)
Stores string value for a specified property name associated with this registry key.
 o removeKey()
Deletes this key.
 o removeProperty(String)
Removes property from this registry key.
 o subkeys()
Enumerates the subkeys of this registry key.

Variables

 o KEY_SUBKEY
 public static final int KEY_SUBKEY
 o KEY_LOCAL_MACHINE
 public static final int KEY_LOCAL_MACHINE
 o KEY_CURRENT_USER
 public static final int KEY_CURRENT_USER
 o KEY_USERS
 public static final int KEY_USERS
 o KEY_CLASSES_ROOT
 public static final int KEY_CLASSES_ROOT

Methods

 o 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
 o 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
 o removeProperty
 public abstract void removeProperty(String name) throws RegistryException
Removes property from this registry key.

 o removeKey
 public abstract void removeKey() throws RegistryException
Deletes this key. This method cannot delete a key that has subkeys.

 o properties
 public abstract Enumeration properties() throws RegistryException
Enumerates the properties of this registry key.

Returns:
enumeration of property names
 o subkeys
 public abstract Enumeration subkeys() throws RegistryException
Enumerates the subkeys of this registry key.

Returns:
enumeration of subkey names
 o getParent
 public abstract RegistryKey getParent()
Returns parent registry key or null if it doesn't exist.

 o exists
 public abstract boolean exists() throws RegistryException
Returns true if this key exists.

 o getTopLevelKeyType
 public abstract int getTopLevelKeyType()
Returns the type of the top level key.


All Packages  Class Hierarchy  This Package  Previous  Next  Index