org.tmatesoft.svn.core.wc.xml

Class SVNXMLAnnotateHandler

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 StringAUTHOR_TAG
static StringBLAME_TAG
static StringCOMMIT_TAG
static StringDATE_TAG
static StringENTRY_TAG
static StringLINE_NUMBER_TAG
static StringPATH_ATTR
static StringREVISION_ATTR
static StringTARGET_TAG
Constructor Summary
SVNXMLAnnotateHandler(ContentHandler contentHandler)
Creates a new annotation handler.
SVNXMLAnnotateHandler(ContentHandler contentHandler, ISVNDebugLog log)
Creates a new annotation handler.
Method Summary
voidendTarget()
Closes the formatted XML output.
protected StringgetHeaderName()
voidhandleLine(Date date, long revision, String author, String line)
voidstartTarget(String pathOrURL)
Begins an XML tree with the target path/URL for which annotating is run.

Field Detail

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 Detail

SVNXMLAnnotateHandler

public SVNXMLAnnotateHandler(ContentHandler contentHandler)
Creates a new annotation handler.

Parameters: contentHandler a ContentHandler to form an XML tree

SVNXMLAnnotateHandler

public SVNXMLAnnotateHandler(ContentHandler contentHandler, ISVNDebugLog log)
Creates a new annotation handler.

Parameters: contentHandler a ContentHandler to form an XML tree log a debug logger

Method Detail

endTarget

public void endTarget()
Closes the formatted XML output.

getHeaderName

protected String getHeaderName()

handleLine

public void handleLine(Date date, long revision, String author, String line)

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-2007 TMate Software Ltd. All Rights Reserved.