Package org.tmatesoft.svn.core.wc.xml
Class SVNXMLLogHandler
java.lang.Object
org.tmatesoft.svn.core.wc.xml.AbstractXMLHandler
org.tmatesoft.svn.core.wc.xml.SVNXMLLogHandler
- All Implemented Interfaces:
ISVNLogEntryHandler
,Locator
This log handler implementation writes xml formatted information
about the log entries it's passed to a specified ContentHandler.
- Since:
- 1.2
- Version:
- 1.3
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
'action'
attribute.static final String
'author'
tag.static final String
'copyfrom-path'
attribute.static final String
'copyfrom-rev'
attribute.static final String
'date'
tag.static final String
'log'
tag.static final String
'logentry'
tag.static final String
'msg'
tag.private boolean
private LinkedList
static final String
'path'
tag.static final String
'paths'
tag.static final String
'revision'
attribute. -
Constructor Summary
ConstructorsConstructorDescriptionSVNXMLLogHandler
(ContentHandler contentHandler) Creates a new log handler.SVNXMLLogHandler
(ContentHandler contentHandler, ISVNDebugLog log) Creates a new log handler. -
Method Summary
Modifier and TypeMethodDescriptionReturns the header name specific for a log handler.void
handleLogEntry
(SVNLogEntry logEntry) Handles a next log entry producing corresponding xml.private void
sendToHandler
(SVNLogEntry logEntry) void
setOmitLogMessage
(boolean omitLogMessage) Sets whether log messages must be omitted or not.Methods inherited from class org.tmatesoft.svn.core.wc.xml.AbstractXMLHandler
addAttribute, addTag, closeTag, endDocument, getColumnNumber, getDebugLog, getLineNumber, getPublicId, getSystemId, openTag, startDocument
-
Field Details
-
COPYFROM_REV_ATTR
'copyfrom-rev'
attribute.- See Also:
-
COPYFROM_PATH_ATTR
'copyfrom-path'
attribute.- See Also:
-
ACTION_ATTR
'action'
attribute.- See Also:
-
REVISION_ATTR
'revision'
attribute.- See Also:
-
MSG_TAG
'msg'
tag.- See Also:
-
PATH_TAG
'path'
tag.- See Also:
-
PATHS_TAG
'paths'
tag.- See Also:
-
DATE_TAG
'date'
tag.- See Also:
-
AUTHOR_TAG
'author'
tag.- See Also:
-
LOGENTRY_TAG
'logentry'
tag.- See Also:
-
LOG_TAG
'log'
tag.- See Also:
-
myIsOmitLogMessage
private boolean myIsOmitLogMessage -
myMergeStack
-
-
Constructor Details
-
SVNXMLLogHandler
Creates a new log handler.- Parameters:
contentHandler
- a ContentHandler to form an XML tree
-
SVNXMLLogHandler
Creates a new log handler.- Parameters:
contentHandler
- a ContentHandler to form an XML treelog
- a debug logger
-
-
Method Details
-
getHeaderName
Returns the header name specific for a log handler.- Specified by:
getHeaderName
in classAbstractXMLHandler
- Returns:
LOG_TAG
string
-
handleLogEntry
Handles a next log entry producing corresponding xml.- Specified by:
handleLogEntry
in interfaceISVNLogEntryHandler
- Parameters:
logEntry
- log entry- Throws:
SVNException
-
setOmitLogMessage
public void setOmitLogMessage(boolean omitLogMessage) Sets whether log messages must be omitted or not.- Parameters:
omitLogMessage
- true to omit; otherwise false
-
sendToHandler
- Throws:
SAXException
-