|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectewex.registry.RegistryKey
| Field Summary | |
static int |
GET_INDEXES
This is an option for getSubKeys(int options) - when used getSubKey() will return an array of integers representing the indexes of all the sub-keys. |
static int |
GET_INDEXES_AS_LONGS
/** This is an option for getSubKeys(int options) - when used getSubKey() will return an array of longs representing the indexes of all the sub-keys. |
static int |
SORT_CASE_SENSITIVE
This is an option for getSubKeys(int options). |
static int |
SORT_DESCENDING
This is an option for getSubKeys(int options). |
static int |
SORT_DONT_SORT
This is an option for getSubKeys(int options). |
| Constructor Summary | |
protected |
RegistryKey()
|
| Method Summary | |
protected boolean |
checkValid()
|
boolean |
delete()
Delete the entire key and all its subkeys (if possible). |
protected boolean |
deleteAKey()
|
protected boolean |
deleteAValue(String name)
|
boolean |
deleteValue(String name)
Delete a value with the specified name. |
RegistryKey |
getCopy()
|
String |
getFullPath()
|
protected boolean |
getIndexedValue(int index,
ewex.registry.RegistryData data)
Set a 32-bit data value in either little-endian or big-endian format. |
String |
getName()
This returns the name of the subkey without the parent path. |
protected boolean |
getNamedValue(String name,
ewex.registry.RegistryData data)
|
String |
getPath()
|
int |
getRoot()
|
String |
getSubKey(int index)
|
RegistryKey |
getSubKey(String subkeyPath)
|
int |
getSubKeyCount()
|
Object |
getSubKeys(int options)
Return an array of Strings or an array of integers or array of longs representing the subkeys of this key. |
Object |
getValue(int index,
StringBuffer valueName)
Get a value at the specified index. |
Object |
getValue(String valueName)
This returns either a String or a byte array, or a ewe.sys.Long (representing a 32-bit value) or null. |
protected boolean |
setABinaryValue(String name,
byte[] value)
|
protected boolean |
setAnIntValue(String name,
int value)
|
protected boolean |
setAStringValue(String name,
String value)
|
boolean |
setValue(String name,
byte[] value)
Set a binary data value. |
boolean |
setValue(String name,
int value)
Set a 32-bit data value in the default little-endian format. |
boolean |
setValue(String name,
String value)
Set a String value. |
String |
toString()
Return a String representation of this object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode |
| Field Detail |
public static final int SORT_DONT_SORT
public static final int SORT_CASE_SENSITIVE
public static final int SORT_DESCENDING
public static final int GET_INDEXES
public static final int GET_INDEXES_AS_LONGS
| Constructor Detail |
protected RegistryKey()
| Method Detail |
public RegistryKey getCopy()
public RegistryKey getSubKey(String subkeyPath)
public int getRoot()
public String getPath()
public String getFullPath()
public String getName()
public String toString()
Object
toString in class Objectpublic Object getValue(String valueName)
public Object getValue(int index,
StringBuffer valueName)
public boolean deleteValue(String name)
public boolean delete()
public boolean setValue(String name,
String value)
public boolean setValue(String name,
byte[] value)
public boolean setValue(String name,
int value)
protected boolean getIndexedValue(int index,
ewex.registry.RegistryData data)
protected boolean getNamedValue(String name,
ewex.registry.RegistryData data)
protected boolean setAStringValue(String name,
String value)
protected boolean setABinaryValue(String name,
byte[] value)
protected boolean setAnIntValue(String name,
int value)
protected boolean deleteAValue(String name)
protected boolean deleteAKey()
protected boolean checkValid()
public String getSubKey(int index)
public Object getSubKeys(int options)
options - By default this will return an array of sorted Strings. If the GET_INDEXES
option is used, then an array of integer indexes (sorted by the sub-key name) will be returned.
If the GET_INDEXES_AS_LONGS option isused, then an array of long indexes (sorted by the sub-key name) will be returned.
& If SORT_DONT_SORT is used then the subkey list returned is not sorted.
public int getSubKeyCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||