org.apache.maven.scm.provider.svn.svnjava.util
Class ScmFileEventHandler

java.lang.Object
  extended by org.apache.maven.scm.provider.svn.svnjava.util.ScmFileEventHandler
All Implemented Interfaces:
org.tmatesoft.svn.core.ISVNCanceller, org.tmatesoft.svn.core.wc.ISVNEventHandler

public class ScmFileEventHandler
extends 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 $
Author:
David Hawkins, Olivier Lamy

Field Summary
 
Fields inherited from interface org.tmatesoft.svn.core.wc.ISVNEventHandler
UNKNOWN
 
Fields inherited from interface org.tmatesoft.svn.core.ISVNCanceller
NULL
 
Constructor Summary
ScmFileEventHandler(org.apache.maven.scm.log.ScmLogger logger, File baseDirectory)
          The logger is used in alerting the user to unknown file statuses.
 
Method Summary
 void checkCancelled()
           
 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
 

Constructor Detail

ScmFileEventHandler

public ScmFileEventHandler(org.apache.maven.scm.log.ScmLogger logger,
                           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 List<org.apache.maven.scm.ScmFile> getFiles()
Returns the list of files collected from handling events.

Returns:
a list of ScmFile objects


Copyright © 2011. All Rights Reserved.