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.
-
RegistryFolder()
- Creates a registry.
-
createFolder(String)
- Creates a new folder in the registry of the specified name only if the
folder does not already exist.
-
deleteFolder(String)
- Deletes the specified folder from the registry.
-
deleteValue(String)
- Deletes the specified value from the registry.
-
getRegistryFolders(String)
- Returns a list of subfolders contained within the specified
registry folder.
-
getRegistryKeys(String)
- Returns an array of keys contained in the specified
folder.
-
getValue(String)
- Gets a value from the registry.
-
setValue(String, Object)
- Sets the specified value in the registry.
RegistryFolder
public RegistryFolder()
- Creates a registry.
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.
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.
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.
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.
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.
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.
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