blob: 9102f8e419c104cac34f7f1ed2fc717d2cc2fab2 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2001, 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.wst.validation.core;
/**
* <p>
* This interface is used, for incremental validation, to encapsulate the change
* status of a resource. IFileDelta contains the name of the file which has
* changed, and a flag which indicates the type of change which has occurred.
* </p>
*/
public interface IFileDelta {
public static final int ADDED = 1; // the file has been added
public static final int CHANGED = 2; // the file has been changed
public static final int DELETED = 3; // the file has been deleted
/**
* <p>
* Returns the flag which indicates the type of change which has occurred:
* IFileDelta.ADDED, IFileDelta.CHANGED, or IFileDelta.DELETED.
* </p>
* @return returns the delta type.
* @since WTP 1.0
*/
public int getDeltaType();
/**
* <p>
* Returns the name of the eclipse resource file which has changed. The return value must not be
* null or the empty string ("").
* </p>
* @return returns the file name.
* @since WTP 1.0
*/
public String getFileName();
}