|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--ca.beq.util.win32.registry.RegistryValue
A representation of registry values. A registry value is defined as a
collection of the following properties: name,
type, and data.
A name consists of a string of one or more printable
characters, excluding the backslash (\). A type may be
any of the defined ValueType's. Data is any
object, consistent with the ValueType.
| Constructor Summary | |
RegistryValue()
Constructs a new, empty, RegistryValue. |
|
RegistryValue(Object data)
Constructs a new RegistryValue with the specified data. |
|
RegistryValue(String name,
boolean data)
Constructs a new RegistryValue with the specified name,
and data. |
|
RegistryValue(String name,
byte data)
Constructs a new RegistryValue with the specified name,
and data. |
|
RegistryValue(String name,
double data)
Constructs a new RegistryValue with the specified name,
and data. |
|
RegistryValue(String name,
float data)
Constructs a new RegistryValue with the specified name,
and data. |
|
RegistryValue(String name,
int data)
Constructs a new RegistryValue with the specified name,
and data. |
|
RegistryValue(String name,
long data)
Constructs a new RegistryValue with the specified name,
and data. |
|
RegistryValue(String name,
Object data)
Constructs a new RegistryValue with the specified name
and data. |
|
RegistryValue(String name,
ValueType type,
Object data)
Constructs a new RegistryValue with the specified name,
type, and data. |
|
| Method Summary | |
Object |
getData()
Returns this RegistryValue's data. |
String |
getName()
Returns this RegistryValue's name. |
ValueType |
getType()
Returns this RegistryValue's ValueType. |
void |
setData(boolean data)
Sets this RegistryValue's data. |
void |
setData(byte data)
Sets this RegistryValue's data. |
void |
setData(double data)
Sets this RegistryValue's data. |
void |
setData(float data)
Sets this RegistryValue's data. |
void |
setData(int data)
Sets this RegistryValue's data. |
void |
setData(long data)
Sets this RegistryValue's data. |
void |
setData(Object data)
Sets this RegistryValue's data. |
void |
setName(String name)
Sets this RegistryValue's name. |
void |
setType(ValueType type)
Sets this RegistryValue's ValueType. |
String |
toString()
Returns a string representation of this RegistryValue. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public RegistryValue()
RegistryValue.public RegistryValue(Object data)
RegistryValue with the specified data.
The type is defaulted to ValueType.REG_SZ. The
name defaults to ""; the default value name.data - the RegistryValue's data
public RegistryValue(String name,
Object data)
RegistryValue with the specified name
and data. The type is defaulted to ValueType.REG_SZ.name - the RegistryValue's namedata - the RegistryValue's data
public RegistryValue(String name,
ValueType type,
Object data)
RegistryValue with the specified name,
type, and data.name - the RegistryValue's nametype - the RegistryValue's typedata - the RegistryValue's data
public RegistryValue(String name,
boolean data)
RegistryValue with the specified name,
and data. The type is ValueType.REG_DWORD.name - the RegistryValue's namedata - the RegistryValue's data
public RegistryValue(String name,
byte data)
RegistryValue with the specified name,
and data. The type is ValueType.REG_BINARY.name - the RegistryValue's namedata - the RegistryValue's data
public RegistryValue(String name,
int data)
RegistryValue with the specified name,
and data. The type is ValueType.REG_DWORD.name - the RegistryValue's namedata - the RegistryValue's data
public RegistryValue(String name,
long data)
RegistryValue with the specified name,
and data. The type is ValueType.REG_DWORD.name - the RegistryValue's namedata - the RegistryValue's data
public RegistryValue(String name,
float data)
RegistryValue with the specified name,
and data. The type is ValueType.REG_BINARY.name - the RegistryValue's namedata - the RegistryValue's data
public RegistryValue(String name,
double data)
RegistryValue with the specified name,
and data. The type is ValueType.REG_BINARY.name - the RegistryValue's namedata - the RegistryValue's data| Method Detail |
public String getName()
RegistryValue's name.RegistryValue's namepublic void setName(String name)
RegistryValue's name.name - the RegistryValue's namepublic ValueType getType()
RegistryValue's ValueType.RegistryValue's typepublic void setType(ValueType type)
RegistryValue's ValueType.name - the RegistryValue's typepublic Object getData()
RegistryValue's data.RegistryValue's datapublic void setData(Object data)
RegistryValue's data.name - the RegistryValue's datapublic void setData(byte data)
RegistryValue's data.name - the RegistryValue's datapublic void setData(boolean data)
RegistryValue's data.name - the RegistryValue's datapublic void setData(int data)
RegistryValue's data.name - the RegistryValue's datapublic void setData(long data)
RegistryValue's data.name - the RegistryValue's datapublic void setData(float data)
RegistryValue's data.name - the RegistryValue's datapublic void setData(double data)
RegistryValue's data.name - the RegistryValue's datapublic String toString()
RegistryValue.toString in class ObjectRegistryValue as a StringNullPointerException - if the name or
data properties are null.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||