All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.wizards.registry.RegistryFolder

java.lang.Object
   |
   +----com.sun.wizards.registry.RegistryFolder

public class RegistryFolder
extends Object
implements Serializable
The RegistryFolder class is the essence of the Java registry. This class is essentially a Hashtable which has nested folders and values.

This class should not be used by applications. The VPD class should be used instead, as it serves as a facade to this class.


Constructor Index

 o RegistryFolder()
Creates a registry.

Method Index

 o createFolder(String)
Creates a new folder in the registry of the specified name only if the folder does not already exist.
 o deleteFolder(String)
Deletes the specified folder from the registry.
 o deleteValue(String)
Deletes the specified value from the registry.
 o getRegistryFolders(String)
Returns a list of subfolders contained within the specified registry folder.
 o getRegistryKeys(String)
Returns an array of keys contained in the specified folder.
 o getValue(String)
Gets a value from the registry.
 o setValue(String, Object)
Sets the specified value in the registry.

Constructors

 o RegistryFolder
 public RegistryFolder()
Creates a registry.

Methods

 o createFolder
 public void createFolder(String folderName) throws FolderNotFoundException
Creates a new folder in the registry of the specified name only if the folder does not already exist.

Parameters:
folderName - The name (and location in the registry) of the new folder.
 o deleteFolder
 public void deleteFolder(String folderName) throws FolderNotFoundException
Deletes the specified folder from the registry.

Parameters:
folderName - The name (and location in the registry) of the folder to delete.
 o setValue
 public void setValue(String keyName,
                      Object value) throws FolderNotFoundException, InvalidValueTypeException
Sets the specified value in the registry.

Parameters:
keyName - The location in the registry to store the value.
value - The value to be stored in the registry.
 o getValue
 public Object getValue(String keyName) throws FolderNotFoundException
Gets a value from the registry.

Parameters:
keyName - The location in the registry where the value is stored.
Returns:
The value.
 o deleteValue
 public void deleteValue(String keyName) throws FolderNotFoundException
Deletes the specified value from the registry. The value specified by keyName must identify a value and not a folder.

Parameters:
keyName - The name (and location in the registry) of the value to delete.
 o getRegistryFolders
 public String[] getRegistryFolders(String folderName) throws FolderNotFoundException
Returns a list of subfolders contained within the specified registry folder.

Parameters:
folderName - The folder containing the desired subfolders.
Returns:
The subfolders contained within the specified folder.
 o getRegistryKeys
 public String[] getRegistryKeys(String folderName) throws FolderNotFoundException
Returns an array of keys contained in the specified folder.

Parameters:
folderName - The folder to query.
Returns:
An array of keys contained in the folder.

All Packages  Class Hierarchy  This Package  Previous  Next  Index