org.rhq.core.system.windows
Class RegistryValue

java.lang.Object
  extended by org.rhq.core.system.windows.RegistryValue
Direct Known Subclasses:
BinaryRegistryValue, DWordRegistryValue, ExpandSzRegistryValue, MultiSzRegistryValue, QWordRegistryValue, SzRegistryValue

public abstract class RegistryValue
extends Object

Denotes a value of a registry entry.


Nested Class Summary
static class RegistryValue.Type
           
 
Constructor Summary
protected RegistryValue(RegistryValue.Type type, Object value)
           
 
Method Summary
 RegistryValue.Type getType()
          Indicates the registry value's type.
 Object getValue()
          Returns the value as a generic Object, which may be of a different type depending on the value of getType().
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RegistryValue

protected RegistryValue(RegistryValue.Type type,
                        Object value)
Method Detail

getType

public RegistryValue.Type getType()
Indicates the registry value's type. This is not a Java type - it is the type of the registry item.

Returns:
type of registry

getValue

public Object getValue()
Returns the value as a generic Object, which may be of a different type depending on the value of getType(). Subclasses will have additional methods to allow the caller to get a more strongly-typed object.

Returns:
the registry value

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008-2009 RHQ Project Advisory Board (Red Hat, Inc.). All Rights Reserved.