|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.coi.tools.os.win.RegistryLogItem
public class RegistryLogItem
Data container for Windows registry logging. This container is used to hold old and new created registry data used at rewinding the registry changes.
| Field Summary | |
|---|---|
static int |
CHANGED_VALUE
Identifier for changed value |
static int |
CREATED_KEY
Identifier for created key |
static int |
CREATED_VALUE
Identifier for created value |
private java.lang.String |
key
|
private RegDataContainer |
newValue
|
private RegDataContainer |
oldValue
|
static int |
REMOVED_KEY
Identifier for removed key |
static int |
REMOVED_VALUE
Identifier for removed value |
private int |
root
|
private static long |
serialVersionUID
|
private int |
type
|
private java.lang.String |
valueName
|
| Constructor Summary | |
|---|---|
private |
RegistryLogItem()
Default constructor. |
|
RegistryLogItem(int type,
int root,
java.lang.String key,
java.lang.String valueName,
RegDataContainer newValue,
RegDataContainer oldValue)
Constructor with settings. |
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
java.lang.String |
getKey()
Returns the key name of this logging item. |
RegDataContainer |
getNewValue()
Returns the new value of this logging item. |
RegDataContainer |
getOldValue()
Returns the old value of this logging item. |
int |
getRoot()
Returns the root id of this logging item. |
int |
getType()
Returns the type id of this logging item. |
java.lang.String |
getValueName()
Returns the value name of this logging item. |
void |
setKey(java.lang.String string)
Sets the key name to the given string |
void |
setNewValue(RegDataContainer container)
Sets the new value to the given RegDataContainer. |
void |
setOldValue(RegDataContainer container)
Sets the old value to the given RegDataContainer. |
void |
setRoot(int i)
Sets the root id for this logging item. |
void |
setType(int i)
Sets the type id for this logging item. |
void |
setValueName(java.lang.String string)
Sets the value name to the given string |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
public static final int REMOVED_KEY
public static final int CREATED_KEY
public static final int REMOVED_VALUE
public static final int CREATED_VALUE
public static final int CHANGED_VALUE
private int type
private int root
private java.lang.String key
private java.lang.String valueName
private RegDataContainer newValue
private RegDataContainer oldValue
| Constructor Detail |
|---|
private RegistryLogItem()
public RegistryLogItem(int type,
int root,
java.lang.String key,
java.lang.String valueName,
RegDataContainer newValue,
RegDataContainer oldValue)
type - type of loging item. Possible are REMOVED_KEY, CREATED_KEY, REMOVED_VALUE,
CREATED_VALUE and CHANGED_VALUEroot - id for the registry rootkey - key name of the item which should be loggedvalueName - name of the value of the item which should be logged if it is a value type,
else nullnewValue - new value of the registry entry if it is a value type, else nulloldValue - old value of the registry entry if it is a value type, else null| Method Detail |
|---|
public java.lang.String getKey()
public RegDataContainer getNewValue()
public RegDataContainer getOldValue()
public int getRoot()
public int getType()
public java.lang.String getValueName()
public void setKey(java.lang.String string)
string - to be used as key namepublic void setNewValue(RegDataContainer container)
container - to be used as new valuepublic void setOldValue(RegDataContainer container)
container - to be used as old valuepublic void setRoot(int i)
i - root id to be used for this logging itempublic void setType(int i)
i - type id to be used for this logging itempublic void setValueName(java.lang.String string)
string - to be used as value name
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||