Package org.tmatesoft.svn.core.wc.xml
Class SVNXMLAnnotateHandler
java.lang.Object
org.tmatesoft.svn.core.wc.xml.AbstractXMLHandler
org.tmatesoft.svn.core.wc.xml.SVNXMLAnnotateHandler
- All Implemented Interfaces:
ISVNAnnotateHandler,Locator
This is an implementation of the ISVNAnnotateHandler interface
that writes XML formatted annotation information to a specified
ContentHandler.
- Since:
- 1.2
- Version:
- 1.3
- Author:
- TMate Software Ltd.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String'author'tag.static final String'blame'tag.static final String'commit'tag.static final String'date'tag.static final String'entry'tag.static final String'line-number'tag.static final String'merged'tag.static final String'path'attribute.static final String'revision'attribute.static final String'target'tag. -
Constructor Summary
ConstructorsConstructorDescriptionSVNXMLAnnotateHandler(ContentHandler contentHandler) Creates a new annotation handler.SVNXMLAnnotateHandler(ContentHandler contentHandler, org.tmatesoft.svn.util.ISVNDebugLog log) Creates a new annotation handler.SVNXMLAnnotateHandler(ContentHandler contentHandler, org.tmatesoft.svn.util.ISVNDebugLog log, boolean isUseMergeHistory) Creates a new annotation handler. -
Method Summary
Modifier and TypeMethodDescriptionvoidCloses the formatted XML output.protected StringvoidDoes nothing.voidhandleLine(Date date, long revision, String author, String line) Handles line annotation producing corresponding xml tags.voidhandleLine(Date date, long revision, String author, String line, Date mergedDate, long mergedRevision, String mergedAuthor, String mergedPath, int lineNumber) Handles line annotation producing corresponding xml tags.booleanhandleRevision(Date date, long revision, String author, File contents) Just returns false.voidstartTarget(String pathOrURL) Begins an XML tree with the target path/URL for which annotating is run.Methods inherited from class org.tmatesoft.svn.core.wc.xml.AbstractXMLHandler
addAttribute, addTag, closeTag, endDocument, getColumnNumber, getDebugLog, getLineNumber, getPublicId, getSystemId, openTag, startDocument
-
Field Details
-
PATH_ATTR
'path'attribute.- See Also:
-
REVISION_ATTR
'revision'attribute.- See Also:
-
DATE_TAG
'date'tag.- See Also:
-
AUTHOR_TAG
'author'tag.- See Also:
-
COMMIT_TAG
'commit'tag.- See Also:
-
ENTRY_TAG
'entry'tag.- See Also:
-
LINE_NUMBER_TAG
'line-number'tag.- See Also:
-
TARGET_TAG
'target'tag.- See Also:
-
BLAME_TAG
'blame'tag.- See Also:
-
MERGED_TAG
'merged'tag.- See Also:
-
-
Constructor Details
-
SVNXMLAnnotateHandler
Creates a new annotation handler.- Parameters:
contentHandler- a ContentHandler to form an XML tree
-
SVNXMLAnnotateHandler
public SVNXMLAnnotateHandler(ContentHandler contentHandler, org.tmatesoft.svn.util.ISVNDebugLog log) Creates a new annotation handler.- Parameters:
contentHandler- a ContentHandler to form an XML treelog- a debug logger
-
SVNXMLAnnotateHandler
public SVNXMLAnnotateHandler(ContentHandler contentHandler, org.tmatesoft.svn.util.ISVNDebugLog log, boolean isUseMergeHistory) Creates a new annotation handler.- Parameters:
contentHandler- a ContentHandler to form an XML treelog- a debug loggerisUseMergeHistory- whether merge history should be taken into account or not
-
-
Method Details
-
getHeaderName
- Specified by:
getHeaderNamein classAbstractXMLHandler
-
startTarget
Begins an XML tree with the target path/URL for which annotating is run.- Parameters:
pathOrURL- a target file WC path or URL
-
endTarget
public void endTarget()Closes the formatted XML output. -
handleLine
Handles line annotation producing corresponding xml tags.- Specified by:
handleLinein interfaceISVNAnnotateHandler- Parameters:
date-revision-author-line-- Throws:
SVNException
-
handleLine
public void handleLine(Date date, long revision, String author, String line, Date mergedDate, long mergedRevision, String mergedAuthor, String mergedPath, int lineNumber) throws SVNException Handles line annotation producing corresponding xml tags.- Specified by:
handleLinein interfaceISVNAnnotateHandler- Parameters:
date-revision-author-line-mergedDate-mergedRevision-mergedAuthor-mergedPath-lineNumber-- Throws:
SVNException
-
handleRevision
public boolean handleRevision(Date date, long revision, String author, File contents) throws SVNException Just returns false.- Specified by:
handleRevisionin interfaceISVNAnnotateHandler- Parameters:
date-revision-author-contents-- Returns:
- false
- Throws:
SVNException
-
handleEOF
public void handleEOF()Does nothing.- Specified by:
handleEOFin interfaceISVNAnnotateHandler
-