|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.tmatesoft.svn.core.wc.xml.AbstractXMLHandler org.tmatesoft.svn.core.wc.xml.SVNXMLAnnotateHandler
public class SVNXMLAnnotateHandler
This is an implementation of the ISVNAnnotateHandler interface that writes XML formatted annotation information to a specified ContentHandler.
Field Summary | |
---|---|
static java.lang.String |
AUTHOR_TAG
'author' tag. |
static java.lang.String |
BLAME_TAG
'blame' tag. |
static java.lang.String |
COMMIT_TAG
'commit' tag. |
static java.lang.String |
DATE_TAG
'date' tag. |
static java.lang.String |
ENTRY_TAG
'entry' tag. |
static java.lang.String |
LINE_NUMBER_TAG
'line-number' tag. |
static java.lang.String |
MERGED_TAG
'merged' tag. |
static java.lang.String |
PATH_ATTR
'path' attribute. |
static java.lang.String |
REVISION_ATTR
'revision' attribute. |
static java.lang.String |
TARGET_TAG
'target' tag. |
Constructor Summary | |
---|---|
SVNXMLAnnotateHandler(org.xml.sax.ContentHandler contentHandler)
Creates a new annotation handler. |
|
SVNXMLAnnotateHandler(org.xml.sax.ContentHandler contentHandler,
ISVNDebugLog log)
Creates a new annotation handler. |
|
SVNXMLAnnotateHandler(org.xml.sax.ContentHandler contentHandler,
ISVNDebugLog log,
boolean isUseMergeHistory)
Creates a new annotation handler. |
Method Summary | |
---|---|
void |
endTarget()
Closes the formatted XML output. |
protected java.lang.String |
getHeaderName()
|
void |
handleEOF()
Does nothing. |
void |
handleLine(java.util.Date date,
long revision,
java.lang.String author,
java.lang.String line)
Handles line annotation producing corresponding xml tags. |
void |
handleLine(java.util.Date date,
long revision,
java.lang.String author,
java.lang.String line,
java.util.Date mergedDate,
long mergedRevision,
java.lang.String mergedAuthor,
java.lang.String mergedPath,
int lineNumber)
Handles line annotation producing corresponding xml tags. |
boolean |
handleRevision(java.util.Date date,
long revision,
java.lang.String author,
java.io.File contents)
Just returns false. |
void |
startTarget(java.lang.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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PATH_ATTR
'path'
attribute.
public static final java.lang.String REVISION_ATTR
'revision'
attribute.
public static final java.lang.String DATE_TAG
'date'
tag.
public static final java.lang.String AUTHOR_TAG
'author'
tag.
public static final java.lang.String COMMIT_TAG
'commit'
tag.
public static final java.lang.String ENTRY_TAG
'entry'
tag.
public static final java.lang.String LINE_NUMBER_TAG
'line-number'
tag.
public static final java.lang.String TARGET_TAG
'target'
tag.
public static final java.lang.String BLAME_TAG
'blame'
tag.
public static final java.lang.String MERGED_TAG
'merged'
tag.
Constructor Detail |
---|
public SVNXMLAnnotateHandler(org.xml.sax.ContentHandler contentHandler)
contentHandler
- a ContentHandler to form
an XML treepublic SVNXMLAnnotateHandler(org.xml.sax.ContentHandler contentHandler, ISVNDebugLog log)
contentHandler
- a ContentHandler to form
an XML treelog
- a debug loggerpublic SVNXMLAnnotateHandler(org.xml.sax.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 notMethod Detail |
---|
protected java.lang.String getHeaderName()
getHeaderName
in class AbstractXMLHandler
public void startTarget(java.lang.String pathOrURL)
pathOrURL
- a target file WC path or URLpublic void endTarget()
public void handleLine(java.util.Date date, long revision, java.lang.String author, java.lang.String line) throws SVNException
handleLine
in interface ISVNAnnotateHandler
date
- revision
- author
- line
-
SVNException
public void handleLine(java.util.Date date, long revision, java.lang.String author, java.lang.String line, java.util.Date mergedDate, long mergedRevision, java.lang.String mergedAuthor, java.lang.String mergedPath, int lineNumber) throws SVNException
handleLine
in interface ISVNAnnotateHandler
date
- revision
- author
- line
- mergedDate
- mergedRevision
- mergedAuthor
- mergedPath
- lineNumber
-
SVNException
public boolean handleRevision(java.util.Date date, long revision, java.lang.String author, java.io.File contents) throws SVNException
handleRevision
in interface ISVNAnnotateHandler
date
- revision
- author
- contents
-
SVNException
public void handleEOF()
handleEOF
in interface ISVNAnnotateHandler
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |