Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions

Copyright:
==================================================================== Copyright (c) 2003-2005 CollabNet. All rights reserved. This software is licensed as described in the file COPYING, which you should have received as part of this distribution. The terms are also available at http://subversion.tigris.org/license-1.html. If newer versions of this license are posted there, you may use a newer version instead, at your option. This software consists of voluntary contributions made by many individuals. For exact contribution history, see the revision history and logs, available at http://subversion.tigris.org/. ====================================================================
Endcopyright:
package org.tigris.subversion.javahl;

Subversion notification interface. Implement this interface and implement the onNotify method to provide a custom notification handler to the Modify class. If you need to pass extra information to the notification handler then just add these to you implementing class

Deprecated:
Use Notify2 instead
public interface Notify
{
    
Handler for Subversion notifications. Override this function to allow Subversion to send notifications

Parameters:
path on which action happen
action subversion action, see svn_wc_notify_action_t
kind node kind of path after action occurred
mimeType mime type of path after action occurred
contentState state of content after action occurred
propState state of properties after action occurred
revision revision number after action occurred
    public void onNotify(String pathint actionint kindString mimeTypeint contentStateint propStatelong revision);

    
The type of action occuring. The values are defined in the interface NotifyAction for building reasons.
    public static final class Action implements NotifyAction
    {
        
Returns the textual representation for the action kind

Parameters:
action kind of action
Returns:
english text
		public static final String getActionName(int action)
		{
			return .[action];
		}
    }
    
The type of notification that is occuring. The values are defined in the interface NotifyStatus for building reasons.
    public static final class Status implements NotifyStatus
   {
        
Returns the textual representation for the notification type

Parameters:
status type of the notification
Returns:
english text
		public static final String getStatusName(int status)
		{
			return .[status];
		}
    }
New to GrepCode? Check out our FAQ X