public class SVNXMLAnnotateHandler extends AbstractXMLHandler implements ISVNAnnotateHandler
Modifier and Type | Field and Description |
---|---|
static String |
AUTHOR_TAG
'author' tag. |
static String |
BLAME_TAG
'blame' tag. |
static String |
COMMIT_TAG
'commit' tag. |
static String |
DATE_TAG
'date' tag. |
static String |
ENTRY_TAG
'entry' tag. |
static String |
LINE_NUMBER_TAG
'line-number' tag. |
static String |
MERGED_TAG
'merged' tag. |
static String |
PATH_ATTR
'path' attribute. |
static String |
REVISION_ATTR
'revision' attribute. |
static String |
TARGET_TAG
'target' tag. |
Constructor and Description |
---|
SVNXMLAnnotateHandler(ContentHandler contentHandler)
Creates a new annotation handler.
|
SVNXMLAnnotateHandler(ContentHandler contentHandler,
ISVNDebugLog log)
Creates a new annotation handler.
|
SVNXMLAnnotateHandler(ContentHandler contentHandler,
ISVNDebugLog log,
boolean isUseMergeHistory)
Creates a new annotation handler.
|
Modifier and Type | Method and Description |
---|---|
void |
endTarget()
Closes the formatted XML output.
|
protected String |
getHeaderName() |
void |
handleEOF()
Does nothing.
|
void |
handleLine(Date date,
long revision,
String author,
String line)
Handles line annotation producing corresponding xml tags.
|
void |
handleLine(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.
|
boolean |
handleRevision(Date date,
long revision,
String author,
File contents)
Just returns false.
|
void |
startTarget(String pathOrURL)
Begins an XML tree with the target path/URL for which
annotating is run.
|
addAttribute, addTag, closeTag, endDocument, getColumnNumber, getDebugLog, getLineNumber, getPublicId, getSystemId, openTag, startDocument
public static final String PATH_ATTR
'path'
attribute.public static final String REVISION_ATTR
'revision'
attribute.public static final String DATE_TAG
'date'
tag.public static final String AUTHOR_TAG
'author'
tag.public static final String COMMIT_TAG
'commit'
tag.public static final String ENTRY_TAG
'entry'
tag.public static final String LINE_NUMBER_TAG
'line-number'
tag.public static final String TARGET_TAG
'target'
tag.public static final String BLAME_TAG
'blame'
tag.public static final String MERGED_TAG
'merged'
tag.public SVNXMLAnnotateHandler(ContentHandler contentHandler)
contentHandler
- a ContentHandler to form
an XML treepublic SVNXMLAnnotateHandler(ContentHandler contentHandler, ISVNDebugLog log)
contentHandler
- a ContentHandler to form
an XML treelog
- a debug loggerpublic SVNXMLAnnotateHandler(ContentHandler contentHandler, ISVNDebugLog log, boolean isUseMergeHistory)
contentHandler
- a ContentHandler to form
an XML treelog
- a debug loggerisUseMergeHistory
- whether merge history should be taken into account or notprotected String getHeaderName()
getHeaderName
in class AbstractXMLHandler
public void startTarget(String pathOrURL)
pathOrURL
- a target file WC path or URLpublic void endTarget()
public void handleLine(Date date, long revision, String author, String line) throws SVNException
handleLine
in interface ISVNAnnotateHandler
date
- revision
- author
- line
- SVNException
public void handleLine(Date date, long revision, String author, String line, Date mergedDate, long mergedRevision, String mergedAuthor, String mergedPath, int lineNumber) throws SVNException
handleLine
in interface ISVNAnnotateHandler
date
- revision
- author
- line
- mergedDate
- mergedRevision
- mergedAuthor
- mergedPath
- lineNumber
- SVNException
public boolean handleRevision(Date date, long revision, String author, File contents) throws SVNException
handleRevision
in interface ISVNAnnotateHandler
date
- revision
- author
- contents
- SVNException
public void handleEOF()
handleEOF
in interface ISVNAnnotateHandler
Copyright © 2022. All rights reserved.