public class RegistryLogItem
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static int |
CHANGED_VALUE |
static int |
CREATED_KEY |
static int |
CREATED_VALUE |
private java.lang.String |
key |
private RegDataContainer |
newValue |
private RegDataContainer |
oldValue |
static int |
REMOVED_KEY
Types of log items
|
static int |
REMOVED_VALUE |
private int |
root |
private static long |
serialVersionUID |
private int |
type |
private java.lang.String |
valueName |
Modifier | Constructor and Description |
---|---|
private |
RegistryLogItem()
Default constructor.
|
|
RegistryLogItem(int type,
int root,
java.lang.String key,
java.lang.String valueName,
RegDataContainer newValue,
RegDataContainer oldValue)
Constructor with settings.
|
Modifier and Type | Method and Description |
---|---|
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
|
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
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 nullpublic 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 namepublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException