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
- public class SVNXMLAnnotateHandler
- extends AbstractXMLHandler
- implements ISVNAnnotateHandler
This is an implementation of the ISVNAnnotateHandler interface
that writes XML formatted annotation information to a specified
ContentHandler.
- Version:
- 1.1
- Author:
- TMate Software Ltd.
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PATH_ATTR
public static final String PATH_ATTR
- See Also:
- Constant Field Values
REVISION_ATTR
public static final String REVISION_ATTR
- See Also:
- Constant Field Values
DATE_TAG
public static final String DATE_TAG
- See Also:
- Constant Field Values
AUTHOR_TAG
public static final String AUTHOR_TAG
- See Also:
- Constant Field Values
COMMIT_TAG
public static final String COMMIT_TAG
- See Also:
- Constant Field Values
ENTRY_TAG
public static final String ENTRY_TAG
- See Also:
- Constant Field Values
LINE_NUMBER_TAG
public static final String LINE_NUMBER_TAG
- See Also:
- Constant Field Values
TARGET_TAG
public static final String TARGET_TAG
- See Also:
- Constant Field Values
BLAME_TAG
public static final String BLAME_TAG
- See Also:
- Constant Field Values
SVNXMLAnnotateHandler
public SVNXMLAnnotateHandler(ContentHandler contentHandler)
- Creates a new annotation handler.
- Parameters:
contentHandler
- a ContentHandler to form
an XML tree
getHeaderName
protected String getHeaderName()
- Specified by:
getHeaderName
in class AbstractXMLHandler
startTarget
public void startTarget(String pathOrURL)
- 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
public void handleLine(Date date,
long revision,
String author,
String line)
throws SVNException
- Description copied from interface:
ISVNAnnotateHandler
- Handles per line annotation information - that is information about
who last committed (changed) this line, the revision and timestamp when it was last
committed.
- Specified by:
handleLine
in interface ISVNAnnotateHandler
- Parameters:
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)
- Throws:
SVNException
Copyright © 2004-2006 TMate Software Ltd. All Rights Reserved.