Class ScmFileEventHandler

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

    public class ScmFileEventHandler
    extends java.lang.Object
    implements org.tmatesoft.svn.core.wc.ISVNEventHandler
    ISVNStatusHandler implementation for most scm commands. Creates a list of ScmFile objects and determines the ScmFileStatus from the SVNEvent.getExpectedAction().
    Version:
    $Id: ScmFileEventHandler.java 487 2011-01-03 20:40:44Z oliver.lamy $
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.io.File baseDirectory  
      private java.util.List<org.apache.maven.scm.ScmFile> files  
      private org.slf4j.Logger logger  
      • 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
      ScmFileEventHandler​(org.slf4j.Logger logger, java.io.File baseDirectory)
      The logger is used in alerting the user to unknown file statuses.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void checkCancelled()  
      java.util.List<org.apache.maven.scm.ScmFile> getFiles()
      Returns the list of files collected from handling events.
      void handleEvent​(org.tmatesoft.svn.core.wc.SVNEvent event, double progress)
      Creates a ScmFile for each event with the exception of directories.
      • Methods inherited from class java.lang.Object

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

      • logger

        private final org.slf4j.Logger logger
      • files

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

        private final java.io.File baseDirectory
    • Constructor Detail

      • ScmFileEventHandler

        public ScmFileEventHandler​(org.slf4j.Logger logger,
                                   java.io.File baseDirectory)
        The logger is used in alerting the user to unknown file statuses.
    • Method Detail

      • handleEvent

        public void handleEvent​(org.tmatesoft.svn.core.wc.SVNEvent event,
                                double progress)
        Creates a ScmFile for each event with the exception of directories. Directory events are ignored.
        Specified by:
        handleEvent in interface org.tmatesoft.svn.core.wc.ISVNEventHandler
      • checkCancelled

        public void checkCancelled()
                            throws org.tmatesoft.svn.core.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()
        Returns the list of files collected from handling events.
        Returns:
        a list of ScmFile objects