|
SVNKit Home | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tmatesoft.svn.core.wc.xml.AbstractXMLHandler
org.tmatesoft.svn.core.wc.xml.SVNXMLAnnotateHandler
This is an implementation of the ISVNAnnotateHandler interface that writes XML formatted annotation information to a specified ContentHandler.
Field Summary | |
static String |
AUTHOR_TAG
|
static String |
BLAME_TAG
|
static String |
COMMIT_TAG
|
static String |
DATE_TAG
|
static String |
ENTRY_TAG
|
static String |
LINE_NUMBER_TAG
|
static String |
PATH_ATTR
|
static String |
REVISION_ATTR
|
static String |
TARGET_TAG
|
Constructor Summary | |
SVNXMLAnnotateHandler(ContentHandler contentHandler)
Creates a new annotation handler. |
|
SVNXMLAnnotateHandler(ContentHandler contentHandler,
org.tmatesoft.svn.util.ISVNDebugLog log)
Creates a new annotation handler. |
Method Summary | |
void |
endTarget()
Closes the formatted XML output. |
protected String |
getHeaderName()
|
void |
handleLine(Date date,
long revision,
String author,
String line)
Handles per line annotation information - that is information about who last committed (changed) this line, the revision and timestamp when it was last committed. |
void |
startTarget(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 String PATH_ATTR
public static final String REVISION_ATTR
public static final String DATE_TAG
public static final String AUTHOR_TAG
public static final String COMMIT_TAG
public static final String ENTRY_TAG
public static final String LINE_NUMBER_TAG
public static final String TARGET_TAG
public static final String BLAME_TAG
Constructor Detail |
public SVNXMLAnnotateHandler(ContentHandler contentHandler)
contentHandler
- a ContentHandler to form
an XML treepublic SVNXMLAnnotateHandler(ContentHandler contentHandler, org.tmatesoft.svn.util.ISVNDebugLog log)
contentHandler
- a ContentHandler to form
an XML treelog
- a debug loggerMethod Detail |
protected 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
ISVNAnnotateHandler
handleLine
in interface ISVNAnnotateHandler
date
- the time moment when changes to line
were commited
to the repositoryrevision
- the revision the changes were commited toauthor
- the person who did those changesline
- a text line of the target file (on which
doAnnotate()
was invoked)
SVNException
|
SVNKit Home | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |