org.tmatesoft.svn.core.wc.xml

Class SVNXMLAnnotateHandler

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.1
Author:
TMate Software Ltd.

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)
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, getDebugLog, getHeaderName, openTag, startDocument

Field Details

AUTHOR_TAG

public static final String AUTHOR_TAG

BLAME_TAG

public static final String BLAME_TAG

COMMIT_TAG

public static final String COMMIT_TAG

DATE_TAG

public static final String DATE_TAG

ENTRY_TAG

public static final String ENTRY_TAG

LINE_NUMBER_TAG

public static final String LINE_NUMBER_TAG

PATH_ATTR

public static final String PATH_ATTR

REVISION_ATTR

public static final String REVISION_ATTR

TARGET_TAG

public static final String TARGET_TAG

Constructor Details

SVNXMLAnnotateHandler

public SVNXMLAnnotateHandler(ContentHandler contentHandler)
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 tree
log - a debug logger

Method Details

endTarget

public void endTarget()
Closes the formatted XML output.

getHeaderName

protected String getHeaderName()
Overrides:
getHeaderName in interface AbstractXMLHandler

handleLine

public void handleLine(Date date,
                       long revision,
                       String author,
                       String line)
            throws SVNException
Specified by:
handleLine in interface ISVNAnnotateHandler

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

Copyright © 2004-2006 TMate Software Ltd. All Rights Reserved.