public abstract class LogEntry extends java.lang.Object implements java.lang.Comparable<LogEntry>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REVISION |
Constructor and Description |
---|
LogEntry(LogEntry entry)
Creates a new LogEntry by cloning
|
LogEntry(java.lang.String elementName,
java.util.Map<java.lang.String,java.lang.String> attributes)
Creates a new LogEntry
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(LogEntry logEntry) |
boolean |
equals(java.lang.Object other) |
java.util.Map<java.lang.String,java.lang.String> |
getAttributes()
Returns the attributes of this LogEntry
|
java.lang.Exception |
getException()
Get the value of exception.
|
int |
getLineNumber()
Gets the value of lineNumber.
|
java.lang.String |
getName()
Returns the name of the element of this LogEntry
|
java.util.Map<java.lang.String,java.lang.String> |
getSortedAttributeMap()
Returns the attribute map sorted according natural ordering of
String.
|
Stamp |
getStamp()
Returns the stamp of this LogEntry
|
protected java.lang.String |
openXMLElement() |
void |
setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
Sets the attribute map
|
void |
setException(java.lang.Exception v)
Sets the value of exception.
|
void |
setLineNumber(int v)
Sets the value of lineNumber.
|
void |
setStamp(Stamp stamp)
Sets the stamp of this LogEntry
|
java.lang.String |
toString() |
java.lang.String |
toXML()
Returns an XML representation of this LogEntry
|
public static final java.lang.String REVISION
public LogEntry(java.lang.String elementName, java.util.Map<java.lang.String,java.lang.String> attributes)
elementName
- the name of the elementattributes
- targe attributes of the entrypublic LogEntry(LogEntry entry)
entry
- the LogEntry to clonepublic void setStamp(Stamp stamp)
stamp
- the stamppublic Stamp getStamp()
public java.lang.String getName()
public java.util.Map<java.lang.String,java.lang.String> getAttributes()
public void setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
attributes
- public int getLineNumber()
public void setLineNumber(int v)
v
- Value to assign to lineNumber.public java.lang.Exception getException()
public void setException(java.lang.Exception v)
v
- Value to assign to exception.public java.util.Map<java.lang.String,java.lang.String> getSortedAttributeMap()
public java.lang.String toXML()
public java.lang.String toString()
toString
in class java.lang.Object
protected java.lang.String openXMLElement()
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
Copyright © 2001-2010 Jalios SA. All Rights Reserved.