Class SvnStatusHandler

  • All Implemented Interfaces:
    org.tmatesoft.svn.core.ISVNCanceller, org.tmatesoft.svn.core.wc.ISVNEventHandler, org.tmatesoft.svn.core.wc.ISVNStatusHandler

    public class SvnStatusHandler
    extends java.lang.Object
    implements org.tmatesoft.svn.core.wc.ISVNStatusHandler, org.tmatesoft.svn.core.wc.ISVNEventHandler
    ISVNStatusHandler implementation for status events. Converts the SVNStatus file status to a ScmFileStatus

    The structure and comments in this method were taken from the tmate.org example file: org.tmatesoft.svn.examples.wc.StatusHandler

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.io.File baseDir  
      private java.util.List<org.apache.maven.scm.ScmFile> files  
      • Fields inherited from interface org.tmatesoft.svn.core.ISVNCanceller

        NULL
      • Fields inherited from interface org.tmatesoft.svn.core.wc.ISVNEventHandler

        UNKNOWN
    • Constructor Summary

      Constructors 
      Constructor Description
      SvnStatusHandler​(java.io.File baseDir)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void checkCancelled()
      Should be implemented to check if the current operation is cancelled.
      java.util.List<org.apache.maven.scm.ScmFile> getFiles()  
      void handleEvent​(org.tmatesoft.svn.core.wc.SVNEvent event, double progress)
      This is an implementation for ISVNEventHandler.handleEvent(SVNEvent event, double progress)
      void handleStatus​(org.tmatesoft.svn.core.wc.SVNStatus status)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • files

        private java.util.List<org.apache.maven.scm.ScmFile> files
      • baseDir

        private java.io.File baseDir
    • Constructor Detail

      • SvnStatusHandler

        public SvnStatusHandler​(java.io.File baseDir)
    • Method Detail

      • handleStatus

        public void handleStatus​(org.tmatesoft.svn.core.wc.SVNStatus status)
        Specified by:
        handleStatus in interface org.tmatesoft.svn.core.wc.ISVNStatusHandler
      • handleEvent

        public void handleEvent​(org.tmatesoft.svn.core.wc.SVNEvent event,
                                double progress)
        This is an implementation for ISVNEventHandler.handleEvent(SVNEvent event, double progress)
        Specified by:
        handleEvent in interface org.tmatesoft.svn.core.wc.ISVNEventHandler
      • checkCancelled

        public void checkCancelled()
                            throws org.tmatesoft.svn.core.SVNCancelException
        Should be implemented to check if the current operation is cancelled. If it is, this method should throw an SVNCancelException.
        Specified by:
        checkCancelled in interface org.tmatesoft.svn.core.ISVNCanceller
        Throws:
        org.tmatesoft.svn.core.SVNCancelException
      • getFiles

        public java.util.List<org.apache.maven.scm.ScmFile> getFiles()