|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jaxfront.core.dom.LogEntry
public class LogEntry
A log entry holds the state of a change within the target DOM at a certain time. Every log knows the source type, old value, log level, action name and the time where the change occured.
Constructor Summary | |
---|---|
LogEntry(Type source,
DOMChangeEvent event,
java.lang.String logLevel,
java.lang.String oldValue)
Createa a new LogEntry based on a source type, a logLevel and the old value. |
|
LogEntry(Type source,
java.beans.PropertyChangeEvent event,
java.lang.String logLevel,
java.lang.String oldValue)
Createa a new LogEntry based on a source type, a logLevel and the old value. |
Method Summary | |
---|---|
void |
dump()
Dumps the state of this log entry to the System.out. |
boolean |
equals(java.lang.Object obj)
|
long |
getAction()
Returns the action type of this log entry. |
java.lang.String |
getNewValue()
|
java.lang.String |
getOldValue()
Returns the forerunner value of the source. |
Type |
getSource()
Returns the source of the log entry. |
long |
getTime()
Returns the time in millisecond when the log entry has been created or updated. |
void |
refresh()
Refreshes the occured time and the _action status. |
void |
refreshTime()
Refreshes the occured time to the current time. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LogEntry(Type source, DOMChangeEvent event, java.lang.String logLevel, java.lang.String oldValue)
source
- of the changeevent
- DOMChangeEvent that has occured (removing or adding of a list
entry)logLevel
- indicates the logLeveloldValue
- defines the forerunner valuepublic LogEntry(Type source, java.beans.PropertyChangeEvent event, java.lang.String logLevel, java.lang.String oldValue)
source
- of the changeevent
- PropertyChangeEvent that has occured (removing or adding of a
list entry)logLevel
- indicates the logLeveloldValue
- defines the forerunner valueMethod Detail |
---|
public long getAction()
public Type getSource()
public java.lang.String getOldValue()
public java.lang.String getNewValue()
public long getTime()
public void dump()
public void refreshTime()
public void refresh()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |