Package com.jalios.jstore
Class LogEntry
java.lang.Object
com.jalios.jstore.LogEntry
- All Implemented Interfaces:
Comparable<LogEntry>
- Direct Known Subclasses:
InnerLogEntry,StorableLogEntry
This abstract class represents a Store operation.
- Author:
- Olivier Dedieu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanReturns the attributes of this LogEntryGet the value of exception.longGets the value of lineNumber.getName()Returns the name of the element of this LogEntryReturns the attribute map sorted according natural ordering of String.getStamp()Returns the stamp of this LogEntryprotected StringvoidsetAttributes(Map<String, String> attributes) Sets the attribute mapvoidSets the value of exception.voidsetLineNumber(long v) Sets the value of lineNumber.voidSets the stamp of this LogEntrytoString()toXML()Returns an XML representation of this LogEntry
-
Constructor Details
-
LogEntry
Creates a new LogEntry- Parameters:
elementName- the name of the elementattributes- targe attributes of the entry
-
LogEntry
Creates a new LogEntry by cloning- Parameters:
entry- the LogEntry to clone
-
-
Method Details
-
setStamp
Sets the stamp of this LogEntry- Parameters:
stamp- the stamp
-
getStamp
Returns the stamp of this LogEntry- Returns:
- the stamp
-
getName
Returns the name of the element of this LogEntry- Returns:
- the name of the element
-
getAttributes
Returns the attributes of this LogEntry- Returns:
- the attributes
-
setAttributes
Sets the attribute map- Parameters:
attributes- the attributes- Since:
- jcms-5.5.0
-
getLineNumber
public long getLineNumber()Gets the value of lineNumber.- Returns:
- Value of lineNumber.
-
setLineNumber
public void setLineNumber(long v) Sets the value of lineNumber.- Parameters:
v- Value to assign to lineNumber.
-
getException
Get the value of exception.- Returns:
- Value of exception.
-
setException
Sets the value of exception.- Parameters:
v- Value to assign to exception.
-
getSortedAttributeMap
Returns the attribute map sorted according natural ordering of String. This method is called by toXML when writing the logEntry- Returns:
- a sorted map
- Since:
- jcms-4.1
-
toXML
Returns an XML representation of this LogEntry- Returns:
- a String containing the XML representation
- Since:
- jcms-4.1
-
toString
-
openXMLElement
-
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<LogEntry>
-