Class SVNXMLAnnotateHandler

java.lang.Object
org.tmatesoft.svn.core.wc.xml.AbstractXMLHandler
org.tmatesoft.svn.core.wc.xml.SVNXMLAnnotateHandler
All Implemented Interfaces:
ISVNAnnotateHandler, Locator

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.
Since:
1.2
Version:
1.3
Author:
TMate Software Ltd.
  • Field Details

  • 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
    • SVNXMLAnnotateHandler

      public SVNXMLAnnotateHandler(ContentHandler contentHandler, org.tmatesoft.svn.util.ISVNDebugLog log, boolean isUseMergeHistory)
      Creates a new annotation handler.
      Parameters:
      contentHandler - a ContentHandler to form an XML tree
      log - a debug logger
      isUseMergeHistory - whether merge history should be taken into account or not
  • Method Details

    • 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
      Handles line annotation producing corresponding xml tags.
      Specified by:
      handleLine in interface ISVNAnnotateHandler
      Parameters:
      date -
      revision -
      author -
      line -
      Throws:
      SVNException
    • handleLine

      public void handleLine(Date date, long revision, String author, String line, Date mergedDate, long mergedRevision, String mergedAuthor, String mergedPath, int lineNumber) throws SVNException
      Handles line annotation producing corresponding xml tags.
      Specified by:
      handleLine in interface ISVNAnnotateHandler
      Parameters:
      date -
      revision -
      author -
      line -
      mergedDate -
      mergedRevision -
      mergedAuthor -
      mergedPath -
      lineNumber -
      Throws:
      SVNException
    • handleRevision

      public boolean handleRevision(Date date, long revision, String author, File contents) throws SVNException
      Just returns false.
      Specified by:
      handleRevision in interface ISVNAnnotateHandler
      Parameters:
      date -
      revision -
      author -
      contents -
      Returns:
      false
      Throws:
      SVNException
    • handleEOF

      public void handleEOF()
      Does nothing.
      Specified by:
      handleEOF in interface ISVNAnnotateHandler