public class RegistryLogItem extends Object implements Cloneable, Serializable
Modifier and Type | Field and Description |
---|---|
static int |
CHANGED_VALUE |
static int |
CREATED_KEY |
static int |
CREATED_VALUE |
private 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 String |
valueName |
Modifier | Constructor and Description |
---|---|
private |
RegistryLogItem()
Default constructor.
|
|
RegistryLogItem(int type,
int root,
String key,
String valueName,
RegDataContainer newValue,
RegDataContainer oldValue)
Constructor with settings.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
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.
|
String |
getValueName()
Returns the value name of this logging item.
|
void |
setKey(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(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 RegDataContainer newValue
private RegDataContainer oldValue
private RegistryLogItem()
public RegistryLogItem(int type, int root, String key, 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 String getKey()
public RegDataContainer getNewValue()
public RegDataContainer getOldValue()
public int getRoot()
public int getType()
public String getValueName()
public void setKey(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(String string)
string
- to be used as value namepublic Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses